Import libraries

Okay, so VC++ generates one automatically if there's ones or more functions or classes with __declspec(dllexport), which is good. MinGW doesn't. I have to re-link the object files into a .lib several hundred times larger than the one generated by VC++ (since it includes not just the exported symbols, but also all the code in the program).
On top of that, the DLL that links to the .lib finds that there are references to external functions (in the .lib), which means I need to link to the DLL everything I link to the main program, making the DLL bloated, too.

Is there any way to have MinGW generate the import library along with the executable?
Topic archived. No new replies allowed.