gl.h include problems

Hi guys!

I have a problem with gl.h. I use VC6++ without SP.
I create a console app. When I include gl.h in on einclude file it works all fine.
then i define a new include file, say for some other classes, and include gl.h here, the compiler breaks with the error: missing “;”…
and he won’t like the WINGAPI directive…
so I have to put some functions into other cpp-files…:frowning:

hope somebody knows what I mean


You must #include <windows.h> before you #include <GL/gl.h>