Find the project in Solution Explorer, right-click on the project –>; Property – & gt; Configure properties –> L Linker –> System – & gt; Subsystem (on the right side of window) –>; SUBSYSTEM:CONSOLE) SUBSYSTEM drop down box select CONSOLE (/SUBSYSTEM:CONSOLE).