does anyone know why this doesnt work?
void test() [[stdcall]] {
std::cout << "Hello World" << std::endl;
}
when I try to compile with C++11 dialect it says:
"warning: 'stdcall' attribute directive ignored [-Wattributes]"
Why is that? I have a function that really needs to have the stdcall calling convention. The default calling convention in GCC is cdecl. Any suggestions?