Jump to content
  • Advertisement
Sign in to follow this  
Halifax2

OpenGL [Problems]OpenGL with MSVC C++ 2008

This topic is 3595 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

Alright, I'm a bit of a n00b with MSVC C++ 2008, since I am just getting around to switching from Code::Blocks. At any rate, I am trying to compile an OpenGL application. When I do this, I get on the verge of 2,000 errors generated from the 'gl.h' file that ships with the Microsoft SDK! So what am I doing wrong/what is Microsoft doing wrong? I'm pretty sure 'gl.h' shouldn't have any errors, let alone 2,000. Here is a sample of the errors:
Quote:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum' C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void' C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';' C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI' C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153) : error C2146: syntax error : missing ';' before identifier 'glAlphaFunc' C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153) : error C2182: 'APIENTRY' : illegal use of type 'void'

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!