I've been following the beginning OpenGL tutorial on this site, and am on this part. I copypasted the code into a new project in Visual Studio 2015, tried to run it, and got this error under the include for glaux.h:
Some googling around led me to add FreeGlut to my project as an attempt to fix this. That changed nothing. And when I tried to run the project, I got this:Cannot open source file gl/glaux.h.
So, I added the include for stdafx.h to the file. Trying to run the code again, I got a crapton of errors. Here's a few:fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
I'm stuck. None of the errors make any sense to me, especially the one saying I'm missing a semicolon (I wasn't). I'd appreciate help with fixing this.c:\users\cg-college\documents\visual studio 2015\projects\learning opengl\startwithopengl\startwithopengl\startwithop engl.cpp(41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\cg-college\documents\visual studio 2015\projects\learning opengl\startwithopengl\startwithopengl\startwithop engl.cpp(41): error C2146: syntax error: missing ';' before identifier 'g_HDC'
1>c:\users\cg-college\documents\visual studio 2015\projects\learning opengl\startwithopengl\startwithopengl\startwithop engl.cpp(54): error C3861: 'glPushMatrix': identifier not found
1>c:\users\cg-college\documents\visual studio 2015\projects\learning opengl\startwithopengl\startwithopengl\startwithop engl.cpp(55): error C2065: 'GL_POLYGON': undeclared identifier