MSVC和MinGW组件dll相互调用

http://www.mingw.org/wiki/msvc_and_mingw_dlls

MinGW调用VC:

The other way is to produce the .a files for GCC. For __cdecl functions (in most cases), it is simple: you only need to apply the reimp tool from Anders Norlander (since his web site is no longer available, you may choose to download
[this version|http://wyw.dcweb.cn/download.asp?path=&file=reimp_new.zip]
enhanced by Jose Fonseca):

 

reimp testdll.lib
gcc -o testmain testmain.c -L. -ltestdll

 

posted @ 2016-07-03 18:30  庚武  Views(3149)  Comments(0Edit  收藏  举报