On Saturday, August 25, 2012, sasuke wrote:

If DLL creation for MSVC works, it is a win-win situation for me
since I now have DLL's which can work with both MingW and MSVC compilers.

So, what have I tried? I have:

* Created DLL using mingw along with .a and .def files
* I created a simple executable project for testing my DLL/LIB files
* I tried to compile the C++ project using MSVC and passing in the .DEF file
created in previous step as input. It fails with linker errors saying
"Undefined symbol" which basically means it has problems with my .DEF file
* I tried to create a .LIB file out of the .DEF file using `lib
/machine:i386 /def:testdll.def` as mentioned in the link
http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs but still no luck. Linking
against this .LIB file in my executable project still throws up "undefined
symbol" errors which again means that I'm missing something.

Simply put, is there a clean cut way of creating a MSVC comptatible DLL/LIB
file out of the .DLL/.DEF/.A files which I just created out of MingW? Thanks



-- https://sites.google.com/site/earnieboyd