Tried the Win32 Project to create a win23 console version. Get these errors:
Win32ConsoleWin32ProjectCube fatal error LNK1169: one or more multiply defined symbols found
Win32ConsoleWin32ProjectCube error LNK2005: _main already defined in Win32ConsoleWin32ProjectCube.obj
and I am using glutCreateWindows. This is the whole program : http://www.eng.auburn.edu/~kchang/comp7400/cube.c from Dr. Angle’s web site http://www.cs.unm.edu/~angel/BOOK/SECOND_EDITION/
Link is the program that is a working program. Works fine compiling on Unix system with some #include monification. Professor did a demo. I add the #pragma comments line before the #include lines in order to get pass the link errors.
Originally posted by Deiussum:
Just noticed the comment about MFC... I'm confused now. Are you using MFC to create your window or glutCreateWindow? If you're using MFC to create the window, you'll need to use ChoosePixelFormat, DescribePixelFormat, and SetPixelFormat in order to enable OpenGL. If you're using glutCreateWindow, recreate your project as a Win32 console app and try again...