Jump to content
  • Advertisement
Sign in to follow this  
raptorstrike

Problem with 2003 Platform SDK for Windows

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

Well recently I've made the switch to VC++ '05 Express because it tends to have better debugging and exception generating capabilities than Dev-Cpp and I needed something a little more powerful for my current project. Everything goes well with the transition except one thing, when the compiler parses the gl.h file in the Platform SDK it generates hundreds of errors all referencing keywords which should have been previously but apparently were not, here is a quick example
c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1171) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1172) : error C2144: syntax error : 'void' should be preceded by ';'
c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1172) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1172) : error C2086: 'int WINGDIAPI' : redefinition
        c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI'

those errors point to this line WINGDIAPI void APIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue); Considering how widely used these files are I figure that it must be something that I am doing wrong so if anyone has run into a similar problem and knows whats going on I would appreciate any help NOTE: I am including the Windows header before the gl header Microsoft Visual C++ 2005 C++/Open GL Windows XP thanks for your time [smile]

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!