PDA

View Full Version : errors in gl.h



teflonlop
01-04-2001, 02:03 PM
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?

j
01-04-2001, 03:11 PM
Did you make your application to be a Win32 application and include the windows.h header?

j

Deiussum
01-05-2001, 05:20 AM
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.