[Lazarus] Get LCL revision or version via ifdef

Sven Barth pascaldragon at googlemail.com
Sun Oct 2 11:57:31 CEST 2011


On 01.10.2011 23:12, silvioprog wrote:
> 2011/10/1 Sven Barth<pascaldragon at googlemail.com>:
>> 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?
>
> Yes, in attached.

Ahhha! I found your problem: You must define "{$mode objfpc}{$H+}" 
BEFORE the "interface"-section. It's a unit global switch and as such it 
must be defined before anything else (except other switches, comments 
and the "program/unit identifer;" declaration).

Regards,
Sven





More information about the Lazarus mailing list