Building on MinGW (Was: [Metakit] Trouble with linking C++ DLLs)
Edmond Ho
edmondho at cs.stanford.edu
Fri Nov 4 21:16:23 CET 2005
> I've figured out the major problem - it looks like both MSYS/MinGW and
> cygwin/MinGW environments need "g++" to be used to link the final DLL, not
> "gcc". Changing SHLIB_LD in the Makefile to g++ allowed the build to
> continue to completion and the examples run perfectly.
Changing SHLIB_LD in the Makefile didn't work for me. The source
compiles successfully, but the linker complains of multiple
definitions for several non-Metakit functions. However, I was able to
link the object files successfully with
g++ -shared -o mk4.dll *.o
I've tested linking against the resulting DLL, and it seems to work.
Thanks for the help!
Edmond
More information about the Metakit
mailing list