Original Post
I have a strange problem with VC++ Express. Recently I downloaded the package that I need to do win32 programming. To test it I opened a NeHe example and it worked fine. But then I tried some of my own stuff and the compiler spouted error after error for every cpp file that included gl.h like this: c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1152) : 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(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum' c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void' c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1152) : 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(1153) : error C2144: syntax error : 'void' should be preceded by ';' c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1153) : 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(1153) : 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' c:\program files\microsoft platform sdk for windows server 2003 r2\include\gl\gl.h(1153) : error C2146: syntax error : missing ';' before identifier 'glAlphaFunc' .... How can it say that there're errors in the gl.h file? What should I do? Thanks.