I updated and removed mormot.lib.static.pas from uses.
Now it compiles for Win32 but Win64 keeps asking for these functions, because LIBDEFLATESTATIC is not defined for it.
But it's ok, I'll leave mormot.lib.static.pas in the project.
mormot.defines.inc
{$ifdef OSWINDOWS}
{$ifdef CPUX86}
{$define LIBDEFLATESTATIC}
{$define LIBQUICKJSSTATIC}
{$endif CPUX86}
{$ifdef CPUX64}
{.$define LIBDEFLATESTATIC} // Win64 + FPC 3.2 = internal error 200603061 <<-------
{$define LIBQUICKJSSTATIC}
{$endif CPUX64}
{$endif OSWINDOWS}
I was ignoring that it was necessary to include mormot.lib.static.pas.
Solved.
]]>I am not able to reproduce here. No problem to compile and run mormot2tests.lpi on Win32/Win64.
https://gist.github.com/synopse/550bb7b … d61c6550f8
Undefined symbol: memcpy (and the same about memset, malloc, free)
Lazarus 2.0.10 Win32
FPC 3.2.0
Win32 - Same error
Cross compile Win64 - Same error
Cross compile Linux64 - OK
Mormot2 with latest updates on git and latest static files (from git releases).
]]>Please also check https://synopse.info/fossil/info/8b8cf321c5
]]>