You are not logged in.
Pages: 1
Enabling Define FPCUSEVERSIONINFO in mormot.defines.inc causes problem in compilation with FPC and Linux x86 as target
mormot.core.os.posix.inc(31,9) Error: Duplicate identifier "FileInfo"
The problem might be that there is a function also named Fileinfo as the pascal unit.
Offline
Example httpServerRaw with FPCUSEVERSIONINFO enabled in FPC 3.2
Verbose: Compiling C:\delphi\G\mORMot2\src\app\mormot.app.console.pas
Verbose: Compiling C:\delphi\G\mORMot2\src\core\mormot.core.base.pas
Verbose: Compiling C:\delphi\G\mORMot2\src\core\mormot.core.os.pas
mormot.core.os.posix.inc(31,9) Error: Duplicate identifier "FileInfo"
mormot.core.os.posix.inc(31,9) Hint: Identifier already defined in mormot.core.os.pas at line 2602
mormot.core.os.pas(8357,0) Verbose: There were 1 errors compiling module, stopping
Offline
You are right.
Should be fixed by https://github.com/synopse/mORMot2/commit/98967911
Offline
Yes, thanks a lot @ab!
Offline
Pages: 1