Do you even export the function? Either a .def file or __declspec(dllexport) would work with MinGW. When importing it, of course you need __declspec(dllimport). So if it's an asm function then use __declspec(dllimport) in the C header so it imports it.
There is name mangling because of the Win32 API using stdcall -- and mainCRTStartup being stdcall as well.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum