[Lazarus] Get LCL revision or version via ifdef

silvioprog silvioprog at gmail.com
Fri Sep 30 23:36:13 CEST 2011


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?

-- 
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
LazWebSolutions - <code.google.com/p/lazwebsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================




More information about the Lazarus mailing list