[Lazarus] Compile conditionals from Delphi do not work in Laz 1.6...
Bo Berglund
bo.berglund at gmail.com
Fri Jul 22 18:00:19 CEST 2016
On Fri, 22 Jul 2016 00:12:17 +0200, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
>> What should i do to make this error go away?
>
>For example:
>
> {$IF defined(FPC)}
> TMemIniFile.Create(IFile);
> {$ElseIf CompilerVersion >= 20} {Delphi 2009 = 20..}
> TMemIniFile.Create(IFile, TEncoding.UTF8);
> {$ELSE}
> TMemIniFile.Create(IFile);
> {$IFEND}
>
>
That is how I did it (using FPC rather than WINDOWS) and it works just
fine. The GUI program now runs on Lazarus instead of Delphi 2007.
--
Bo Berglund
Developer in Sweden
More information about the Lazarus
mailing list