I declared some C++ functions prototyped as follows:
extern "C" void __stdcall function();
I also have some third-party dll with exported function() - no name decorations at all.
I'm unable to build my exe or dll due to undefined reference to function@..., because of MinGW's stdcall @-suffix. How can I obtain object file without @... just plain function names?
man ldgives you the--enable-stdcall-fixupoption for linking against non-@-decorated libraries. I'm not sure if the leading underscores will be a problem, you'll have to try.If you want to produce object files or DLLs with mingw and want export names without the "@",
--kill-atis your friend.