You need to change your compiler settings. When you created your project you didn't select the proper project type. You selected a Win32 project instead of a console application.

Jim