Public Group

# Problem with 2003 Platform SDK for Windows

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

## 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 on other sites
This post seems to be having the same error. See if it helps.

• 10
• 17
• 9
• 14
• 41
• ### Forum Statistics

• Total Topics
631068
• Total Posts
2997740
×