[Lazarus] Get LCL revision or version via ifdef

Marcos Douglas md at delfire.net
Sun Oct 2 19:42:25 CEST 2011


2011/10/2 silvioprog <silvioprog at gmail.com>
>
> 2011/10/2 Sven Barth <pascaldragon at googlemail.com>:
> > 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
>
> Hmm... how to I configure my .inc file for the demo work?
>
> (new demo in attached)

Simple, just use .inc in unit files. Do not put logical in .lpr files.

Marcos Douglas




More information about the Lazarus mailing list