开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜