Hi,
I have a following requirements for the windows app and want to use Lazarus for it:
1) must compile to single exe file, this exe file must run on Windows XP without redistributable packages
2) must use C++ library (with a C wrapper) compiled with MinGW
The first point works out of the box, but I gave up on second one after some time. I can link statically simple C lib (with {$linklib libmsvcrt.a} from mingw) into lazarus app. And I can link a C++ lib that doesn't use C++ stdlib and declares public functions with extern "C". But if I cannot link C++ lib which uses stdlib internally (string, vector etc).
If I link with {$linklib libstdc++.a} I got a bunch of "Duplicated symbols error". Link with {$linklib libstdc++.dll.a} succeed, but the application won't run asking for libstdc++-6.dll (no such lib exists in mingw).
I read "CInFreePascal.pdf" but unfortunately it is linux-specific.
Any help would be appreciated.