OPenGL 错误随笔
2011-03-13 12:38
239 查看
今天第一次在写个OPenGL 小东西,碰到错误,分享下:
我的开发环境是XP+VS2005
错误函数
error LNK2019: unresolved external symbol __imp__glFlush@
这类的错误
或
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxSolidSphere@8
,该符号在函数
_main
中被引用
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxInitWindowA@4
,该符号在函数
_main
中被引用
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxInitPosition@16
,该符号在函数
_main
中被引用
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxInitDisplayMode@4
,该符号在函数
_main
中被引用
原因是没有在附加依赖项中添加如上
lib
文件
解决方法:
在
Project Properties->Configuration Properties->Linker->Input->Additional Dependencies
中添加
opengl32.lib glu32.lib glaux.lib
另外转贴百度一个飞鹤凌云的博客:
http://hi.baidu.com/%B7%C9%F0%D8%C1%E8%D4%C6/blog/item/108a155d42137249fbf2c0b3.html
我的开发环境是XP+VS2005
错误函数
error LNK2019: unresolved external symbol __imp__glFlush@
这类的错误
或
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxSolidSphere@8
,该符号在函数
_main
中被引用
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxInitWindowA@4
,该符号在函数
_main
中被引用
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxInitPosition@16
,该符号在函数
_main
中被引用
1>PT.obj : error LNK2019:
无法解析的外部符号
_auxInitDisplayMode@4
,该符号在函数
_main
中被引用
原因是没有在附加依赖项中添加如上
lib
文件
解决方法:
在
Project Properties->Configuration Properties->Linker->Input->Additional Dependencies
中添加
opengl32.lib glu32.lib glaux.lib
另外转贴百度一个飞鹤凌云的博客:
http://hi.baidu.com/%B7%C9%F0%D8%C1%E8%D4%C6/blog/item/108a155d42137249fbf2c0b3.html
相关文章推荐
- Opengles 2.0 错误 called unimplemented OpenGL ES API
- iOS 开启OpenGL错误调试
- OpenGL的gl.h出现一堆错误,如重定义什么的
- opengl GLSL 学习 随笔三
- u-boot移植随笔:解决引导内核遇到undefined instruction的错误
- OpenGL错误总结
- Opengl编程低级错误 (转载)
- OpenGL链接错误和环境搭配问题
- opengl 编程低级错误手册
- OpenGL编程低级错误及常见问题解答
- OpenGL错误和性能Tips
- ANDROID “call to opengl es api with no current context”错误的解决
- opengl程序winnt.h错误解决
- OpenGL错误解决方案
- qt opengl 关闭错误
- OPENGL问题:link时出现error LNK2001: unresolved external symbol ___glutInitWithExit@12的错误提示
- 随笔: 段错误, 数字大小溢出
- 计算机图形学linux遇到的错误gcc 编译错误 opengl
- VS下使用openGL过程中的常见错误集合
- 遇到ANDROID “call to opengl es api with no current context”错误