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 ===|
这是什么问题呢?我实在找不出原因了,求高手解救!