开发者

GLEW Linker Error

I am following along with tutorials on the site, http://openglbook.com/, and I have run into a problem I cannot solve. In the second tutorial, they begin using shaders. After entering in their code, I get linking errors such as,

"[Linker error] undefined reference to '_ imp____glewGenVe开发者_JAVA百科rtexArrarys'"

as well as a lot of others. My development environment is Dev-C++. I have linked against glew32.lib, but it still fails to recognize some of the GLEW functions. I have been able to utilize some functions from the GLEW library, but when it comes to these shaders, something is going wrong and I cannot figure out why. Any help would be much appreciated.


I recently had a similar problem with glew and VS 2010. I can't remember the link that said it but I think they talked about statically linking glew by defining the makro GLEW_STATIC.

Btw for me the solution was to recompile GLEW from source on my own.

EDIT I think I found the link: http://www.gamedev.net/topic/462433-glew-and-mingw/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜