码迷,mamicode.com
首页 > 其他好文 > 详细

error:: undefined reference to symbol '__glewBufferSubData' 未定义的引用 以及 error: main.o: undefined reference to symbol 'glTexImage2D'

时间:2017-05-12 20:22:03      阅读:431      评论:0      收藏:0      [点我收藏+]

标签:error:   文件   lib   报错   没有   pre   wrap   space   main   

在把DSO移植到QT工程中,出现了

/usr/bin/ld: KeyFrameDisplay.o: undefined reference to symbol ‘__glewBufferSubData‘

报错,原因是.pro文件中没有加 GLEW库。

解决方案:

在.pro文件中加上这句:

##### GLEW #####
LIBS += -lGLEW

 error: main.o: undefined reference to symbol ‘glTexImage2D‘

报错,原因是.pro文件中没有加OpenGL

解决方案:qt中内置了opengl,因此在.pro文件中加上这句:

QT += opengl

 

error:: undefined reference to symbol '__glewBufferSubData' 未定义的引用 以及 error: main.o: undefined reference to symbol 'glTexImage2D'

标签:error:   文件   lib   报错   没有   pre   wrap   space   main   

原文地址:http://www.cnblogs.com/defe-learn/p/6846712.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!