Errors in glu.h


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 ?



Have you tried #include <windows.h> ? (BEFORE #include <GL/***.h> )

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.