> Make your program a console application. > > Add WIN32 to your add_executable() in your CMakeLists.txt for your application. Oops. That will only solve the last error. John