设置 GLEW 窗口?
我有 Visual Studio 2010,我想在其上设置 glew.h。 我执行了这一步,但仍然出现链接器错误: 1.下载glew pack
2.将.h文件复制到C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Ininclude
3.将.lib文件复制到C:\Program Files (x86)\Microsoft SDKs\ Windows\v7.0A\Lib
4.将glew32.dll复制到C:\Windows\SysWOW64
5.最后转到myproject属性,然后转到链接器->输入添加glew32.lib, glu32.lib 和 opengl32.lib 到其他依赖项
,但我仍然有此错误:
错误 LNK2001:无法解析的外部符号 __imp____glewBlendEquation
I have visual studio 2010 and I want to set up glew.h on it.
i do this step but still I have linker error:
1.download glew pack
2.copy .h files to C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include
3.copy .lib files to C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib
4.copy glew32.dll to C:\Windows\SysWOW64
5.and finally go to myproject properties then go to linker->input add glew32.lib,
glu32.lib, and opengl32.lib to Additional Dependencies
but I still have this error:
error LNK2001: unresolved external symbol __imp____glewBlendEquation
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我今天遇到了同样的问题,所以即使我迟到了一个月才得到答案,只需将 GLEW_STATIC 添加到预处理器的定义中即可。
I've been confronted to the same issue today, so even if I'm one month late for the answer, just add GLEW_STATIC to your preprocessor's definitions.
这是一个常见问题。只需下载源代码,重新编译即可运行。
That's a common problem. Just download the source, recompile it and it will work.