PDA

View Full Version : Errors in glu.h



11-13-2002, 09:20 AM
Hi,

I use DJGPP on Windows and
I'm a beginner in OpenGl

When I do :
gcc prog.c -o prog.exe

The compiler show :
GL/glu.h : Syntax error before "void"
........
GL/glu.h : Syntax error before '*' token
........

Where is the problem ?

Thanks

Jb

marcus256
11-13-2002, 12:45 PM
Have you tried #include <windows.h> ? (BEFORE #include <GL/***.h> )

Deiussum
11-13-2002, 01:00 PM
Isn't DJGPP a DOS compiler? If it is, you won't be able to use it for OpenGL programming. I think you can use Mesa with it, though. That basically has all the same functions as OpenGL, but can't actually be called OpenGL because of licensing issues.