Since native extension manual lack of details I have some problems/questions. Also I couldn’t find any Windows example.
As far as I know we can’t use dynamic or shared libs like .dll or .so
I’m trying to compile lib on Linux with mingw32 (6.3) for windows. I know this is not the best way to do it. It is better to build on windozz… But I don’t have a windows box. (Windows dev virtualbox is 20gb! - damn it!)
I try to build static lib(.a)
x86_64-w64-mingw32-g++ -static-libgcc -static-libstdc++ -c -o AABB.o AABB.cc // Also try it without -static-libgcc -static-libstdc++ flags
x86_64-w64-mingw32-ar rcs libaabb.a AABB.o
x86_64-w64-mingw32-ranlib libaabb.a
Unfortunately build can’t resolve symbols…
Since Windows build uses cl.exe and link.exe (Linux native extensions error: Invalid lib - 'libs': 'c++' ext.manifest) it is unclear for dummies like me to how to use flags and libs in manifest.
I desperately try these but of course I fail
x86_64-win32:
context:
linkFlags: ["/link libaabb.a"]
libs: ["libstdc++-6.dll", "libgcc_s_dw2-1.dll"]
Which flags and libs are available and how can I(we) use them in manifest? Or sould we?
Thank you in advance for any help you can provide…