| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 588 人关注过本帖
标题:opengl库安装问题
只看楼主 加入收藏
yzpdsg
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-12-26
收藏
 问题点数:0 回复次数:0 
opengl库安装问题
我按照http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/glut/将所有的文件安放到位,但是编译时就是报错

obj\Debug\main.o||In function `glutInit_ATEXIT_HACK':|
C:\Program Files\CodeBlocks\MinGW\include\GL\glut.h|486|undefined reference to `___glutInitWithExit'|
obj\Debug\main.o||In function `glutCreateWindow_ATEXIT_HACK':|
C:\Program Files\CodeBlocks\MinGW\include\GL\glut.h|503|undefined reference to `___glutCreateWindowWithExit'|
obj\Debug\main.o||In function `glutCreateMenu_ATEXIT_HACK':|
C:\Program Files\CodeBlocks\MinGW\include\GL\glut.h|549|undefined reference to `___glutCreateMenuWithExit'|
obj\Debug\main.o||In function `_Z6resizeii':|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|32|undefined reference to `__imp__glViewport'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|33|undefined reference to `__imp__glMatrixMode'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|34|undefined reference to `__imp__glLoadIdentity'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|35|undefined reference to `__imp__glFrustum'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|37|undefined reference to `__imp__glMatrixMode'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|38|undefined reference to `__imp__glLoadIdentity'|
obj\Debug\main.o||In function `_Z7displayv':|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|43|undefined reference to `_glutGet'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|46|undefined reference to `__imp__glClear'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|47|undefined reference to `__imp__glColor3d'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|49|undefined reference to `__imp__glPushMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|50|undefined reference to `__imp__glTranslated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|51|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|52|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|53|undefined reference to `_glutSolidSphere'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|54|undefined reference to `__imp__glPopMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|56|undefined reference to `__imp__glPushMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|57|undefined reference to `__imp__glTranslated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|58|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|59|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|60|undefined reference to `_glutSolidCone'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|61|undefined reference to `__imp__glPopMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|63|undefined reference to `__imp__glPushMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|64|undefined reference to `__imp__glTranslated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|65|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|66|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|67|undefined reference to `_glutSolidTorus'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|68|undefined reference to `__imp__glPopMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|70|undefined reference to `__imp__glPushMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|71|undefined reference to `__imp__glTranslated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|72|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|73|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|74|undefined reference to `_glutWireSphere'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|75|undefined reference to `__imp__glPopMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|77|undefined reference to `__imp__glPushMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|78|undefined reference to `__imp__glTranslated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|79|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|80|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|81|undefined reference to `_glutWireCone'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|82|undefined reference to `__imp__glPopMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|84|undefined reference to `__imp__glPushMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|85|undefined reference to `__imp__glTranslated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|86|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|87|undefined reference to `__imp__glRotated'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|88|undefined reference to `_glutWireTorus'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|89|undefined reference to `__imp__glPopMatrix'|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|91|undefined reference to `_glutSwapBuffers'|
obj\Debug\main.o||In function `_Z3keyhii':|
C:\ProgramData\Kaspersky Lab\SandboxShared\test7\main.cpp|118|undefined reference to `_glutPostRedisplay'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

这是什么问题呢?我实在找不出原因了,求高手解救!
搜索更多相关主题的帖子: opengl 
2010-03-30 21:02
快速回复:opengl库安装问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.030355 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved