Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Opengl 未定义对'的引用_imp_uuuuuglewgenbuffers&x27;_Opengl_Codeblocks_Glew - Fatal编程技术网

Opengl 未定义对'的引用_imp_uuuuuglewgenbuffers&x27;

Opengl 未定义对'的引用_imp_uuuuuglewgenbuffers&x27;,opengl,codeblocks,glew,Opengl,Codeblocks,Glew,在代码块mingw上编译opengl 2.1程序时,我遇到了以下关于glew库的链接错误 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

在代码块mingw上编译opengl 2.1程序时,我遇到了以下关于glew库的链接错误

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

此外,我还让项目找到了适当的头文件和库


还剩下什么?

还要链接库glew32s.lib。将此链接器放在链接器列表的顶部。

这可能是由于试图在mingw下使用MSVC库造成的。下载为mingw编译的库,或者编译您自己的库。

可能重复的