On 30.09.2011 23:36, silvioprog wrote:
2011/9/30 silvioprog<[email protected]>:
Hi,

I'm trying:

...
uses
  LCLVersion,
{$IF (LCL_MAJOR = 0) AND (LCL_MINOR = 9) AND (LCL_RELEASE<= 30)}
  Classes,
{$ENDIF}
...

But:

"Error: Compile time expression: Wanted STRING but got BOOLEAN or
INTEGER at "LCL_MAJOR = 0"".

How to I get the LCL version? (or revision)

Thx.

In my lazsolutions.inc file, I'm trying:

{$IF ((LCL_MAJOR>= 0) and (LCL_MINOR>= 9) and (LCL_RELEASE>= 31))}
   {$DEFINE LSNEWLAZARUS}
{$ENDIF}

But:

">lazsolutions\trunk\Core\lazsolutions.inc(11,5) Error: Compile time
expression: Wanted STRING but got BOOLEAN or INTEGER at "LCL_MAJOR>=
0""

How to I solve this?


I personally don't see what's wrong there. Can you reproduce that with a small test program that does not depend on "LCLVersion", but defines the constants itself?

Also what version of FPC are you using?

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to