GLEW Linker Errors (undefined reference to `__glewBindVertexArray')

前端 未结 3 666
栀梦
栀梦 2020-12-03 23:56

I\'ve recently made the decision to re-write some OpenGL code for a game using im working on using non depreciated techniques. Instead of drawing primitives with glBegin() a

3条回答
  •  感情败类
    2020-12-04 00:43

    This usually happens if you link GLEW statically, but don't inform the header about this to happen. For this you must define the preprocessor token "GLEW_STATIC". This is best done as a compiler option. In case of GCC, add -DGLEW_STATIC to your compiler command line.

提交回复
热议问题