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

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to