Sign in to follow this  
Halifax2

OpenGL [Problems]OpenGL with MSVC C++ 2008

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this