Reputation: 6842
My machine has OpenGL 2.0, for some weird reason, the header file gl.h
does not contain shader functions. So, I was suggested to use GLEW. I installed GLEW properly, and have linked glew32s
to my compiler, I have also included the header file in my main.cpp
. Yet, I get compiler (not runtime) errors when simply calling:
GLenum err = glewInit();
undefined reference to `imp_glewInit@0'
What in the world is that supposed to mean? It says similar things for shader functions.
I am using the GCC compiler, and am on windows x86.
Upvotes: 1
Views: 563
Reputation: 52084
You're trying to use the static version of GLEW.
Make sure you #define GLEW_STATIC
before #include
ing glew.h
.
Upvotes: 1