OpenGL problem with VS .NET 2003

Started by
1 comment, last by Ace826 19 years, 7 months ago
Ok, i want to use seperate .cpp files to do things. However, when if i include <gl\gl.h> <gl\glu.h> <gl\glaux.h> in my main rendering cpp file, everything works fine. But if I include those same three files into another .cpp file i get errors when compiling. These errors are found in GL.h. one of them is... c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' any help would be awesome. thanks.
Advertisement
most likely you didn't #include <windows.h> before #include <GL/gl.h>

tell me whether it solves your problem.
-* So many things to do, so little time to spend. *-
Wow! You rock. Why does it work? Does GL.h not include windows.h itself? Thanks. yay!

This topic is closed to new replies.

Advertisement