PDA

View Full Version : errors in gl.h lib



01-13-2005, 05:46 AM
hi there i'm very new at this, but this seems to be a problem wth my gl.h library is there anyway of fixing it

--------------------Configuration: basic shape - Win32 Debug--------------------
Compiling...
basic shape.cpp
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
Error executing cl.exe.

Cheps
01-13-2005, 06:06 AM
Just #include <windows.h> before you #include <gl.h>

01-13-2005, 06:14 AM
cheers for that, but now its saying

Cannot open include file: 'GL/glut.h': No such file or directory

01-13-2005, 06:19 AM
If you are using windows
Try to include <windows.h> before <gl/gl.h>

Cheps
01-13-2005, 07:52 AM
Just copy glut.h in your c:\program files\microsoft visual studio\vc98\include\gl directory. You can download it from www.opengl.org. (http://www.opengl.org.)

01-13-2005, 09:55 AM
thanks a lot guys, you really helped. :D