windows下编译OpenGL程序时出现的链接问题的处理
来源:互联网 发布:java输入身份证号m 编辑:程序博客网 时间:2024/06/05 08:38
在xp的vc6.0环境下OpenGL程序编译后出现如下错误:
Linking...
OpenGL.obj : error LNK2001: unresolved external symbol _gluPerspective@32
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glHint@8
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glClear@4
OpenGL.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4
OpenGL.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8
OpenGL.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4
VC中操作如下:Project-> Settings,然后单击LINK标签。在"Object/Library Modules"选项中的开始处(在 kernel32.lib 前)增加 OpenGL32.lib GLu32.lib 和 GLaux.lib 后单击OK按钮。其实这一步应该在你写之前做的!
出现如下错误:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/20120113.exe : fatal error LNK1120: 1 unresolved externals
这是Windows子系统设置错误, 提示:
Windows项目要使用Windows子系统, 而不是Console, 可以这样设置:
[Project] --> [Settings] --> 选择"Link"属性页,
在Project Options中将/subsystem:console改成/subsystem:windows
- windows下编译OpenGL程序时出现的链接问题的处理
- ffmpeg库在windows下编译出现无法链接的问题的解决方法
- VC下编译和链接常出现的问题汇总
- VC下编译和链接常出现的问题汇总
- VC下编译和链接常出现的问题汇总
- 【caffe-windows】在windows下编译caffe出现的问题
- windows下X server运行OpenGL程序的问题
- opengl的测试程序出现的问题
- windows下编译安装wireshark出现的问题及解决方法
- libuv windows 下编译及使用出现的问题
- 编译链接中出现的问题
- Qt编译OpenGL程序遇到的问题
- VS2010下配置OpenGL出现的问题
- Linux下OpenGL的安装与cmake编译OpenGL程序
- 使用gcc 5 编译c++11编写的程序 出现的符号找不到的链接问题。
- winxp下sdl程序的编译链接
- linux下程序的编译和链接
- linux下C程序的编译链接
- The express of stack squenced
- 打造自己的centos/linux发行版 订制精简ISO压缩包文件[初级版](转)
- redirect、redirectAction和chain关于action处理结果的问题
- DRY 原则
- SharedPreferencec存储数据
- windows下编译OpenGL程序时出现的链接问题的处理
- linux下文件压缩/解压的简单用法
- 在不root手机的情况下读取Data目录下的文件
- libevent和libev
- Development:Kickstart CD
- Evacuation HDOJ 3757 poj 3963
- 通过/dev/mem进行恶意代码注入
- EditText中hint消失
- libev源码分析libev数据结构整理