You are not logged in.
Pages: 1
Hi,
just downloaded FPC/trunk and the night build of mORMot.
FPC fails to compile TestSQL3 or any other (ex. Project04Server) under Win7 in default(win32) mode with many errors like:
TestSQL3.dpr(186,1) Error: Undefined symbol: __imp___endthreadex
TestSQL3.dpr(186,1) Error: Undefined symbol: __imp___beginthreadex
etc.
In linux mode is fine.
With previous FPC (stable) everything was OK.
What might be the reason?
Offline
Are you sure you downloaded the latest static SQLite3 .o files from http://synopse.info/files/sqlite3fpc.7z ?
Please follow http://synopse.info/files/html/Synopse% … l#TITL_125
Offline
Can confirm ...
AFAIK, the problem is solved when some functions inside SynSQLite3Static.pas are declared forward.
Fpc trunk leaves/optimizes them out somehow ...
(@ab: see mail)
Offline
Please try http://synopse.info/fossil/info/5db8673387
I identify it as a FPC regression for its internal linker.
Offline
Maybe usage {$linklib c} for Windows can help?
best regards,
Maciej Izak
Offline
I did not know about {$linklib c} but it sounds like if it is only for Linux.
See http://forum.lazarus.freepascal.org/ind … ic=15712.0
Offline
After applying the patch #5db8673387, compilation is fine now.
Thanks.
Offline
Pages: 1