You are not logged in.
Hi Guys,
When using SynSQLite3Static does not compile with this error:
Error: Error while linking
Note: Compiling to Win64 are ok.
Some clue to what can be?
My environment
Lazarus (Win64): 1.8.2 (stable)
FPC: 3.0.4 (stable)
Cross-compiling to Linux x86_64
fpcupdeluxe-x86_64-win64: V1.6.0q
Other units (-Fu)
..\..\..\FPCUPDeluxe\ccr\mORMot;
..\..\..\FPCUPDeluxe\ccr\mORMot\SQLite3;
..\..\..\FPCUPDeluxe\ccr\mORMot\SQLite3\DDD\infra
Include files (-Fi)
$(ProjOutDir);
..\..\..\FPCUPDeluxe\ccr\mORMot;
..\..\..\FPCUPDeluxe\ccr\mORMot\SQLite3
Libraries (-Fl)
..\..\..\FPCUPDeluxe\ccr\mORMot\static\x86_64-linux
Last edited by macfly (2018-05-23 14:28:40)
Offline
Thanks for reply
I tried with trunk, but same error.
Also, tried with newpascal, and the same error.
Error while linking
Offline
Yes.
And tried again now with "Run -> Clean up and Build", and manually delete all .o / .ppu files.
Same error.
Offline
If i comment ALL externall funcs like:
function sqlite3_initialize: integer; cdecl; external;
And necessarily
CodecGenerateKey(CodecGetReadKey(codec)^,userPassword,passwordLength)
Then compile.
That is, this compile
//function sqlite3_initialize: integer; cdecl; external;
...
//function sqlite3_trace_v2(DB: TSQLite3DB; Mask: integer; Callback: TSQLTraceCallback; UserData: Pointer): Pointer; cdecl; external;
...
procedure CodecGenerateReadKey(codec: pointer; userPassword: PAnsiChar; passwordLength: integer); cdecl;
{$ifdef FPC}public name _PREFIX+'CodecGenerateReadKey';{$endif} export;
begin
//CodecGenerateKey(CodecGetReadKey(codec)^,userPassword,passwordLength);
end;
Offline
I just did (few minutes ago) a brand new trunk install, with x86_64 cross-compiler for Linux and mORMot on Win10 with fpcupdeluxe-x86_64-win64 V1.6.0q
I could not reproduce your problem.
What happens if you try to compile mORMot Sample 02 for both Windows as well as for Linux 64bit ?
Offline
Yes this sample compile.
And this gave me a clue to find the problem...
I need to add Interfaces in uses
And add LCL as dependency in the project inspector.
Thank you for your help
Offline