jefftime
jefftime

Reputation: 440

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____glewGenVertexArrarys'"

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.

Upvotes: 2

Views: 4068

Answers (1)

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/

Upvotes: 1

Related Questions