我用的是vs2005,编译过程没有出现什么问题,项目中也链接了相应的动态库,但编译实例程序时,出项如下错误:
D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition
1> D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1152) : see declaration of 'WINGDIAPI'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1153) : error C2146: syntax error : missing ';' before identifier 'glAlphaFunc'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1153) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1153) : error C2086: 'int APIENTRY' : redefinition
1> D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1152) : see declaration of 'APIENTRY'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1154) : error C2146: syntax error : missing ';' before identifier 'GLboolean'
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1154) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\GL/gl.h(1154) : error C2086: 'int WINGDIAPI' : redefinition