I'm learning C++ and I came across a strange error; Everytime I want to build my project, I get "undefined reference to `WinMain@16'". Here's my code:
Main class:
Try changing the project settings to SUBSYSTEM CONSOLE if you're using Visual Studio. Your compiler thinks you're trying to create a GUI app, which takes a different version of main.