Hello all, I tried building the latest source with the G++ flag "-std=c++11", but it gives a compile error in src/SFML/Main/MainWin32.cpp. The error comes from:
extern int main(int argc, char* argv[]);
////////////////////////////////////////////////////////////
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, INT)
{
return main(__argc, __argv);//Undefined reference to both of these variables.
}
It got me thinking... how did it compile without the C++11 flag in the first place? I tried searching the source, but couldn't find any definition of "__argc" or "__argv". Is it perhaps a WinAPI shadowing issue?