errors in gl.h

when trying to compile a simple gl program, I get the follow errors:

c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ‘;’ before type ‘void’
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: ‘WINGDIAPI’ : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found

I have gl.h and glut.h included. I’m using the version of gl.h that came with msdev 6.

any know why it’s giving me these errors?

Did you make your application to be a Win32 application and include the windows.h header?

j

If you’re including glut.h, you don’t really need to include gl.h. (It’s included in glut.h) You can still include gl.h, but you’ll either have to include windows.h before it, or include gl.h after glut.h, not before.

Also, If you’re using glut, you should be using a Win32 CONSOLE, NOT a Win32 application.