未定义对'_imp___glewGenBuffers'的引用 [英] undefined reference to '_imp___glewGenBuffers'
本文介绍了未定义对'_imp___glewGenBuffers'的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在代码块Mingw上编译opengl 2.1程序时,我遇到了以下与glew库有关的链接错误.
I am having the following link errors regarding glew library when compiling an opengl 2.1 program on code blocks,mingw.
obj\Debug\LUtil.o||In function `Z6renderv':|
C:\Users\war\Desktop\CG\Hello\LUtil.cpp|162|undefined reference to `_imp____glewGenBuffers'|
C:\Users\war\Desktop\CG\Hello\LUtil.cpp|163|undefined reference to `_imp____glewBindBuffer'|
C:\Users\war\Desktop\CG\Hello\LUtil.cpp|164|undefined reference to `_imp____glewBufferData'|
我还正确地链接了这些库. -lopengl32 -glu32 -glew32 -lfreeglut
Also, I have properly linked these libraries. -lopengl32 -glu32 -glew32 -lfreeglut
此外,我已经使项目找到了合适的头文件和库.
Also, I have make the project find the appropriate header files and libraries.
还有什么?
推荐答案
还链接库glew32s.lib.将此链接器放在链接器列表的顶部.
Link the library glew32s.lib also. Put this linker at the top of linker list.
这篇关于未定义对'_imp___glewGenBuffers'的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文