TODO: Reformat to new wiki syntax.
!!! [Minimalist GNU for Windows | http://www.mingw.org]
!! MSVC and MinGW DLLs
Assume we have a testdll.h, testdll.c, and testmain.c. In the first case, we will compile testdll.c with MinGW, and let the MSVC-compiled testmain call it. You should use
gcc -shared -o testdll.dll testdll.c -Wl,--output-def,testdll.def,--out-implib,libtestdll.a
to produce the DLL and DEF files. MSVC cannot use the MinGW library, but since you have already the DEF file you may easily produce one by the Microsoft LIB tool:
<pre>
Recent comments
7 years 11 weeks ago
7 years 11 weeks ago
7 years 44 weeks ago
7 years 44 weeks ago
7 years 44 weeks ago
7 years 44 weeks ago
7 years 45 weeks ago
7 years 45 weeks ago
7 years 46 weeks ago
8 years 1 week ago