opengl 学习
来源:互联网 发布:类似八恶人的电影知乎 编辑:程序博客网 时间:2024/05/21 06:48
1:
I have the folling files in the following locations: -
glut.h
glu.h
gl.h
C:/Program Files/Microsoft Visual Studio 8/VC/include/GL
glut.32.lib
C:/Program Files/Microsoft Visual Studio 8/VC/lib
glut32.dll
glu32.gll
C:/WINDOWS/system32
I make a new project (Win32 Console App).
Set the Additional Dependencies under
Project | Properties | Config Properties | Linker | Input
I have: -
opengl32.lib glu32.lib glut32.lib
This is basically what just about every site I look at tells me to do.
So I copy over some code that I know compiles and runs under my Dev C++ setup...
And it fails to compile with the following errors: -
1>main.obj : error LNK2019: unresolved external symbol __imp____glutInitWithExit@12 referenced in function _glutInit_ATEXIT_HACK@8
1>main.obj : error LNK2019: unresolved external symbol __imp____glutCreateWindowWithExit@8 referenced in function _glutCreateWindow_ATEXIT_HACK@4
This is didn't happen a little while ago, as I was trying to solve a previous problem. This was that when I tried to run a successfully compiled program, an error would say: -
The procedure entry point __glutInitWithExit could not be located in the dynamic link library glut32.dll
solution:
Try define the following line right before including the header, glut.h.
#define GLUT_DISABLE_ATEXIT_HACK
- 学习OPENGL
- OpenGL学习
- opengl 学习
- openGL学习
- openGL学习
- [OpenGL学习]
- OpenGL学习
- OpenGL学习
- openGL学习
- OpenGL学习
- OpenGL 学习
- OpenGL学习
- opengl学习
- OpenGL 学习
- Opengl学习
- OPENGL学习
- opengl学习
- 学习OpenGL
- 结构性模式-代理模式
- Nautilus 无法处理“computer”位置
- 【转】【翻译】Orx官方教程:10.独立程序和本地化 stand alone & localization
- 太郁闷了
- 在Linux下,如果一个文件夹下文件太多,使用rm删除会出现/bin/rm: Argument list too long错误
- opengl 学习
- 先小人 后君子
- 告别中国黑客的激情年代:中国黑客谱系(转)-读历史,新认识,谢谢共享.
- lesson2&3
- js判断获得焦点的控件
- 明天你就离我1162公里了
- io/select模型
- 智力题解题报告No.6 100个灯 100个开关
- 开口笑:捡老婆系列