开发者

C++ OpenGL --- Linker error with function gluBuild2DMipmaps

开发者 https://www.devze.com 2023-02-22 18:07 出处:网络
Additional Information: #include <gl\\glu.h> #include <gl\\gl.h> Hey, I got a really simple but soul-destroying problem:
Additional Information:
#include <gl\glu.h>
#include <gl\gl.h>

Hey, I got a really simple but soul-destroying problem:

I can compile a normal opengl program (rotating triangles) with dev++, but if I want to use the function gluBuild2DMipmaps(GL_TEXTURE_2D, 3, 0, 0, GL_RGB, GL_UNSIGNED_BYTE, 0), a linker error occurs

[Linker error] undefined reference to `glu开发者_开发问答Build2DMipmaps@28´
Id returned 1 exit status
[Build error] [myprog.exe] Error 1

Anyone got an idea?


Try linking against glu32.lib.

0

精彩评论

暂无评论...
验证码 换一张
取 消