Jump to content
  • Advertisement
Sign in to follow this  
Ace826

OpenGL OpenGL problem with VS .NET 2003

This topic is 5410 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
most likely you didn't #include <windows.h> before #include <GL/gl.h>

tell me whether it solves your problem.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!