VC运行OpenGL,gl.h报错
vc中运行以下程序出错:#include<GL/gl.h>#include<GL/glu.h>#include<GL/glaux.h>#include<windows.h...
vc中运行以下程序出错:
#include<GL/gl.h>
#include<GL/glu.h>
#include<GL/glaux.h>
#include <windows.h>
int main()
{
return 0;
}
错误:
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
ConsGL.exe - 3 error(s), 0 warning(s)
不知道什么原因.................... 展开
#include<GL/gl.h>
#include<GL/glu.h>
#include<GL/glaux.h>
#include <windows.h>
int main()
{
return 0;
}
错误:
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
ConsGL.exe - 3 error(s), 0 warning(s)
不知道什么原因.................... 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询