Glew in VS 2010: unresolved external symbol __imp__glewInit

后端 未结 5 1791
夕颜
夕颜 2020-12-15 19:40

I am learning OpenGL by following the redbook. When I come to around page 90, I need use glGenBuffers(); Then I need install \"glew\". By following the steps in www.cs.uiowa

5条回答
  •  不知归路
    2020-12-15 20:14

    Since it's not mentioned already, my problem was that I was linking against the static version of glew (glew32s.lib), but I hadn't defined the GLEW_STATIC preprocessor symbol (so the header I was compiling against effectively didn't match the library I was linking against).

提交回复
热议问题