You created the project as a Windows project instead of a console project. Re-create it as a console project. Or, if using Visual Studio, right-click on the project, choose Properties, go to Linker...