OpenCL AMD编译GL示例

时间:2011-03-01 22:01:49

标签: compiler-errors opencl

我正在尝试编译AMD示例并继续收到错误

In file included from /home/james/ati-stream-sdk-v2.3-     lnx64/include/GL/glew.h:1138,
             from SimpleGL.hpp:103,
             from SimpleGL.cpp:93:
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:231: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:231: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:231: error: expected initializer before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:271: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:271: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:271: error: expected initializer before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:354: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:354: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:354: error: expected initializer before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:360: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:363: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:364: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:365: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:366: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:367: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:368: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:372: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:373: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:374: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:375: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:376: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:377: error: expected ‘)’ before ‘*’ token
/home/james/ati-stream-sdk-v2.3-lnx64/include/GL/glu.h:384: error: expected ‘)’ before ‘*’ token

我将其跟踪到功能定义

void APIENTRY gluQuadricCallback ( 
GLUquadric          *qobj,  
GLenum              which,  
void                (CALLBACK* fn)());

我对cpp并不十分熟悉所以我不确定这是否是正确的形式。
还有其他人有这个问题吗? 我的系统是Ubuntu 64位10.10 Maverick。

0 个答案:

没有答案