Opengl编程时遇到问题
我的程序用VS2008,在Debug模式下运行很好。然而,到了release模式下报错,如下:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152): error: this declaration has no storage class or type specifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1152): error: expected a ";"
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153): error: this declaration has no storage class or type specifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153): error: variable "WINGDIAPI" has already been defined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1153): error: expected a ";"
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1154): error: variable "WINGDIAPI" is not a type name
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1154): error: "GLboolean" has already been declared in the current scope
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1154): error: expected a ";"
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1155): error: this declaration has no storage class or type specifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1155): error: variable "WINGDIAPI" has already been defined
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1155): error: expected a ";"
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1156): error: this declaration has no storage class or type specifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\GL/gl.h(1156): error: variable "WINGDIAPI" has already been defined
这是什么原因啊!?