From: Dock, D. <dio...@me...> - 2011-02-14 22:22:35
|
I've produced a library built with MinGW64 that can be compiled and linked by MinGW64. However, when someone tries to link it in a Cygwin environment, they get errors about a missing function: foo.o:foo.cpp:(.text+0xfa8): undefined reference to `__imp__MapFileAndCheckSumA@12' This function is supplied via the Windows Platform SDK in ImageHlp.lib/ImageHlp.dll. I've tried to statically bind in ImageHlp.lib but the symbol isn't there: x86_64-w64-mingw32-gcc.exe -c foo.cpp x86_64-w64-mingw32-nm.exe foo.o | find "Map" U __imp_MapFileAndCheckSumA x86_64-w64-mingw32-gcc.exe -c foo.cpp -L \temp\mingw_64 -lImageHlp x86_64-w64-mingw32-nm.exe foo.o | find "Map" U __imp_MapFileAndCheckSumA Any thoughts on how I can build my library to resolve this dependency? Would creating an export library do the trick? thanks, -Dion |