Undefined reference to WinMain (C++ MinGW)
Newer Mingw versions support -municode linker option switching to alternate startup code allowing to use wWinMain instead of WinMain (or wmain instead of main). Add it to your command line, linker options in IDE or makefile. g++ other_options_and_arguments -municode Older versions do not support this option. One thing to note is that Visual C++ supports … Read more