我目前正在关注openglbook.com教程(设置)(教程)并且很早就遇到了问题.我收到以下两个错误:
1>main.obj : error LNK2019: unresolved external symbol __imp__glewGetErrorString@4 referenced in function _Initialize
1>main.obj : error LNK2019: unresolved external symbol __imp__glewInit@0 referenced in function _Initialize
Run Code Online (Sandbox Code Playgroud)
我已经下载并编译了freeglut 2.8.0以及glew 1.9.0二进制文件.我已经复制了libs并分别包含在C:\ Program Files(x86)\ Microsoft SDKs\Windows\v6.0A\Lib和Include中.Lib和Include路径也已添加到Additional Library/Include目录下的项目属性中.
我还在我的链接器 - >输入 - >附加依赖项中定义了glew32.lib和freeglut.lib.
我在主文件的顶部包含了GL/glew.h和GL/freeglut.h.
我错过了什么?我发现的每个其他线程都是通过将目录添加到项目属性来解决的.有没有人有任何想法?