View Full Version : GL.h problems?!?

09-26-2003, 09:30 AM
hi, i just started reading about OpenGL yesterday. i am trying to use glut to start of because i don't know too much about windows programming. anyway, i am trying to compile a little demo program and i'm getting this error:

e:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
e:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers

it's for this line in the gl.h file:

WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);

and i'm assuming all the other function headers that start with WINGDIAPI will give me the same error. anyone have an idea on what the problem might be? thanks a lot.

09-26-2003, 09:59 AM
You must include Windows.h before GL.h under Windows.

09-26-2003, 12:07 PM
thanks a lot...i figured that out a little while after i posted. thanks for the response.