Re: Building on MinGW (Was: Trouble with linking C++ DLLs)
Edmond Ho <[email protected]> Fri, 4 Nov 2005 21:16:23 -0500
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Message-ID | <[email protected]> |
> 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 _____________________________________________ Metakit mailing list - [email protected] http://www.equi4.com/mailman/listinfo/metakit