Just after putting #include <gl/gl.h> in my code, I recieve alot of errors.
I am able to compile and run #include <gl/glut.h> but would rather wish to not use glut. What could be wrong?
Here are some of my 143 errors I recieve:
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1152) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1152) : error C2146: syntax error : missing ‘;’ before identifier ‘glAccum’
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1152) : error C2182: ‘APIENTRY’ : illegal use of type ‘void’
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1153) : error C2144: syntax error : ‘void’ should be preceded by ‘;’
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1153) : error C2086: ‘int WINGDIAPI’ : redefinition
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1152) : see declaration of ‘WINGDIAPI’
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1153) : error C2146: syntax error : missing ‘;’ before identifier ‘glAlphaFunc’