为什么我的openGL程序无法解决Windows 10 + VS 2015上的GLEW符号?

时间:2016-04-01 14:14:37

标签: opengl glew

我正在构建基于Windows 10 + Vistual studio Community 2015的glfw + glew OpenGL开发环境,然后我尝试在其上编译我的代码,但它不起作用并且总是得到一些链接错误,如下所示:

error LNK2019: unresolved external symbol __glewCompileShader
error LNK2019: unresolved external symbol __glewCreateShader
error LNK2019: unresolved external symbol __glewGetShaderiv
...

我跟着GLEW offical guide,我多次检查了我的项目配置:

copy glew-1.13.0/bin/Release/Win32/glew32.dll to %SystemRoot%/system32
copy glew-1.13.0/lib/Release/Win32/glew32.lib to \Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib
copy glew-1.13.0/include/GL/glew.h to \Program Files (x86)\Microsoft Visual Studio 14.0\VC\include/GL
copy glew-1.13.0/include/GL/wglew.h to \Program Files (x86)\Microsoft Visual Studio 14.0\VC\include/GL

此GLEW库是否不支持Window 10?或者我是如何让它发挥作用的?

0 个答案:

没有答案