I need to export function
extern "C" __declspec(dllexport)
int __stdcall MyFunc(int a,int b)
{
return a*2+b*b;
}
Strictly with "MyFunc" export name, not MyFunc@8
MSVC allows do this via .def files, but how to do this in MinGW?
I really need to have stdcall calling convention