Hi Philip,
Hess, Philip J wrote:
Are you trying to use the osprinters unit? Don't do that. Use the Printers
and/or PrintersDlgs units or else Lazarus will try to compile osprinters with
the non-implemented Carbon printer files.
I'm not specifically trying to to use it. I had a pre-existing project
that worked fine last night with an older snapshot from about 2 weeks
ago. Since I wanted the transparency fix I thought I would upgrade to
the latest snapshop and came across this problem.
I have Printer4Lazarus included in my project file and internally that
references OsPrinters. Even if I remove the refernce to Printer4Lazarus
from the project, it still finds OsPrinters, so this must be being
referenced in some other units as well.
Like I said, this worked flawlessly in the previous snapshot I had and I
have not changed any code since last night. I simply installed the
latest snaphop, opened lazarus and tried to compile the same project
that compiled and ran fine yesterday.
You'll also probably have to put something like this in "Other Unit Files" path:
$(LazarusDir)/components/printers/lib/$(TargetCPU)-$(TargetOS)/
Adding this did not solve the problem.
Dominique.
Now Lazarus can find the compiled units.
Thanks.
-Phil
-----Oorspronkelijk bericht-----
Van: Dominique Louis [mailto:[EMAIL PROTECTED]
Verzonden: za 20-10-2007 10:43
Aan: [email protected]
Onderwerp: [lazarus] Error when Updgrading to lastest ( 20/10 ) snapshot...
Hi all,
this is possibly a silly error on my part. I have just updated to the
latest snapshot version of Lazarus/FPC. When I try and compile my Mac OS
X project the unit carbonprinters_h.inc is opened and the TCarbonPrinter
class is highlighted and the console window error message is :
"carbonprinters_h.inc(7,3 Fatal : Syntax Error, 'IMPLEMENTATION'
expected but identifier TCarbonPrinter found"
this include file is definitely missing an implementation section.
Btw, what does {%MainUnit ../osprinters.pp} imply? When I looked in that
directory all I found was osprinters.pas not osprinters.pp.
FPC compiler is listed as 2.2.1 and the Lazarus editor is listed as
v0.9.23 beta.
Dominique.
Version: 7.5.488 / Virus Database: 269.15.3/1081 - Release Date: 19/10/2007
17:41
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives