unresolved external symbol __imp____glutInitWithExit
2016-01-15 18:28
423 查看
Error 1 error LNK2001: unresolved external symbol __imp____glutInitWithExit@12 opengltest.obj opengltest
Error 2 error LNK2001: unresolved external symbol __imp____glutCreateWindowWithExit@8 opengltest.obj opengltest
Error 3 fatal error LNK1120: 2 unresolved externals
后来去h文件找到这样一条信息:
Note that the __glut*WithExit routines should NEVER be called directly.
To avoid the atexit workaround, #define GLUT_DISABLE_ATEXIT_HACK
因此在#include glut.h之前加入:
#define GLUT_DISABLE_ATEXIT_HACK
编译通过,运行ok。
后来又在网上验证了大家使用了同一解决方法。
如:
点击打开链接
Error 2 error LNK2001: unresolved external symbol __imp____glutCreateWindowWithExit@8 opengltest.obj opengltest
Error 3 fatal error LNK1120: 2 unresolved externals
后来去h文件找到这样一条信息:
Note that the __glut*WithExit routines should NEVER be called directly.
To avoid the atexit workaround, #define GLUT_DISABLE_ATEXIT_HACK
因此在#include glut.h之前加入:
#define GLUT_DISABLE_ATEXIT_HACK
编译通过,运行ok。
后来又在网上验证了大家使用了同一解决方法。
如:
点击打开链接
相关文章推荐
- 提升linux tcp网络带宽措施
- According to TLD or attribute directive in tag file, attribute items does not accep t any expressions
- 数据库 sql 语句 持续集成
- lua和c的亲密接触
- iOS 调用打电话事件
- 通过HTTP方式获取URL返回结果数据(Java)
- Swift-08-闭包引起的循环强引用
- CSS 选择器语法参考手册
- 多任务异步执行dispatch_group_async的使用
- Gradle学习
- 项目小结
- Python中__init__方法使用
- javascript同步异步
- ListView优化机制及滑动时数据错乱
- 解题报告:codeforces #339(Div.2)B.Gena's Code
- 极光推送的别名alias和标签tag分别是什么意思
- 第七讲 有依赖的背包问题 vijos P1313金明的预算方案
- 项目修炼之路(1)服务化
- auto_ptr and scoped_ptr
- COGS314. [NOI2004] 郁闷的出纳员