I am trying to render a cube in opengl using vertex array objects. The same code works on a linux box but doesnt work on a windows machine. I get unresolved external error while using glGenVertexArrays and glBindVertexArray.
glewInfo.exe reports glGenVertexArrays and glBindVertexArray are usable:
GL_ARB_vertex_array_object: OK
---------------------------
glBindVertexArray: OK
glDeleteVertexArrays: OK
glGenVertexArrays: OK
glIsVertexArray: OK
glewinfo
binary does not imply that you use glew also in your code base. I just wanted to make sure. If you use glew and get those unresolved linker errors, there is something wrong with with lniking, and no runtime code can fix that. Note then when you use glew as a static library (or directly add the glew sources to your code) on windows, you have to#define GLEW_STATIC
before includingglew.h
. – derhass