​

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|​ 

enhanced by Jose Fonseca):


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