[Lazarus] Get LCL revision or version via ifdef
Sven Barth
pascaldragon at googlemail.com
Sat Oct 1 13:44:43 CEST 2011
On 30.09.2011 23:36, silvioprog wrote:
> 2011/9/30 silvioprog<silvioprog at gmail.com>:
>> 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
More information about the Lazarus
mailing list