On Mon, 22 Oct 2018 21:09:56 +0200, Bo Berglund via Lazarus <lazarus@lists.lazarus-ide.org> wrote:
>I have a console program for Windows, which was developed using >Delphi2007 and Indy10. Now trying to compile the old Delphi sources in FPC/Lazarus and it stops in a common file on this type of construct: {$IF CompilerVersion >= 26} {Delphi XE5..} Fmt := TFormatSettings.Create; {$IFEND} The error message is: IniFileFuncs.pas(55,7) Error: Incompatible types: got "AnsiString" expected "Int64" IniFileFuncs.pas(55,7) Error: Compile time expression: Wanted Boolean but got <erroneous type> at IF or ELSEIF I guess this might be a FPC difference to Delphi... How can I make FPC understand that this is a conditional it shall just ignore? -- Bo Berglund Developer in Sweden -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus