Minime80
09-15-2000, 07:48 PM
I'm not advanced, in fact I'm just starting, but I thought there was a better chance of someone here being able to figure out what's going on. Here's what's up. I got everything installed correctly and I have an example program that include's glut.h. I gave the compiler the opengl32 and glut32 libraries to link in, but when I try to compile it just gives me this.
gcc: -lopengl32: linker input file unused since linking not done
gcc: -lglut32: linker input file unused since linking not done
and the linker gives me this huge honkin' list of errors:
c:/my documents/accum.o: In function `Init':
//c/dev-c++/examples/opengl/accum.c:14: undefined reference to `_imp__glClearColor'
//c/dev-c++/examples/opengl/accum.c:15: undefined reference to `_imp__glClearAccum'
//c/dev-c++/examples/opengl/accum.c:17: undefined reference to `_imp__glGenLists'
//c/dev-c++/examples/opengl/accum.c:18: undefined reference to `_imp__glNewList'
//c/dev-c++/examples/opengl/accum.c:19: undefined reference to `_imp__glColor3f'
//c/dev-c++/examples/opengl/accum.c:20: undefined reference to `_imp__glRectf'
//c/dev-c++/examples/opengl/accum.c:21: undefined reference to `_imp__glEndList'
//c/dev-c++/examples/opengl/accum.c:23: undefined reference to `_imp__glGenLists'
//c/dev-c++/examples/opengl/accum.c:24: undefined reference to `_imp__glNewList'
//c/dev-c++/examples/opengl/accum.c:25: undefined reference to `_imp__glColor3f'
//c/dev-c++/examples/opengl/accum.c:26: undefined reference to `_imp__glRectf'
//c/dev-c++/examples/opengl/accum.c:27: undefined reference to `_imp__glEndList'
c:/my documents/accum.o: In function `main':
//c/dev-c++/examples/opengl/accum.c:103: undefined reference to `glutInit'
//c/dev-c++/examples/opengl/accum.c:108: undefined reference to `glutInitDisplayMode'
//c/dev-c++/examples/opengl/accum.c:109: undefined reference to `glutInitWindowSize'
//c/dev-c++/examples/opengl/accum.c:110: undefined reference to `glutCreateWindow'
//c/dev-c++/examples/opengl/accum.c:114: undefined reference to `glutReshapeFunc'
//c/dev-c++/examples/opengl/accum.c:115: undefined reference to `glutKeyboardFunc'
//c/dev-c++/examples/opengl/accum.c:116: undefined reference to `glutDisplayFunc'
//c/dev-c++/examples/opengl/accum.c:117: undefined reference to `glutMainLoop'
c:/my documents/accum.o: In function `Reshape':
//c/dev-c++/examples/opengl/accum.c:33: undefined reference to `_imp__glViewport'
//c/dev-c++/examples/opengl/accum.c:35: undefined reference to `_imp__glMatrixMode'
//c/dev-c++/examples/opengl/accum.c:36: undefined reference to `_imp__glLoadIdentity'
//c/dev-c++/examples/opengl/accum.c:37: undefined reference to `_imp__glMatrixMode'
//c/dev-c++/examples/opengl/accum.c:38: undefined reference to `_imp__glLoadIdentity'
c:/my documents/accum.o: In function `Key':
//c/dev-c++/examples/opengl/accum.c:50: undefined reference to `_imp__glPolygonMode'
//c/dev-c++/examples/opengl/accum.c:51: undefined reference to `glutPostRedisplay'
c:/my documents/accum.o: In function `Draw':
//c/dev-c++/examples/opengl/accum.c:61: undefined reference to `_imp__glPushMatrix'
//c/dev-c++/examples/opengl/accum.c:63: undefined reference to `_imp__glScalef'
//c/dev-c++/examples/opengl/accum.c:65: undefined reference to `_imp__glClear'
//c/dev-c++/examples/opengl/accum.c:66: undefined reference to `_imp__glCallList'
//c/dev-c++/examples/opengl/accum.c:67: undefined reference to `_imp__glAccum'
//c/dev-c++/examples/opengl/accum.c:69: undefined reference to `_imp__glClear'
//c/dev-c++/examples/opengl/accum.c:70: undefined reference to `_imp__glCallList'
//c/dev-c++/examples/opengl/accum.c:71: undefined reference to `_imp__glAccum'
//c/dev-c++/examples/opengl/accum.c:73: undefined reference to `_imp__glAccum'
//c/dev-c++/examples/opengl/accum.c:75: undefined reference to `_imp__glPopMatrix'
//c/dev-c++/examples/opengl/accum.c:78: undefined reference to `glutSwapBuffers'
//c/dev-c++/examples/opengl/accum.c:80: undefined reference to `_imp__glFlush'
Could someone please tell me what it's looking for and what to do to fix it.
gcc: -lopengl32: linker input file unused since linking not done
gcc: -lglut32: linker input file unused since linking not done
and the linker gives me this huge honkin' list of errors:
c:/my documents/accum.o: In function `Init':
//c/dev-c++/examples/opengl/accum.c:14: undefined reference to `_imp__glClearColor'
//c/dev-c++/examples/opengl/accum.c:15: undefined reference to `_imp__glClearAccum'
//c/dev-c++/examples/opengl/accum.c:17: undefined reference to `_imp__glGenLists'
//c/dev-c++/examples/opengl/accum.c:18: undefined reference to `_imp__glNewList'
//c/dev-c++/examples/opengl/accum.c:19: undefined reference to `_imp__glColor3f'
//c/dev-c++/examples/opengl/accum.c:20: undefined reference to `_imp__glRectf'
//c/dev-c++/examples/opengl/accum.c:21: undefined reference to `_imp__glEndList'
//c/dev-c++/examples/opengl/accum.c:23: undefined reference to `_imp__glGenLists'
//c/dev-c++/examples/opengl/accum.c:24: undefined reference to `_imp__glNewList'
//c/dev-c++/examples/opengl/accum.c:25: undefined reference to `_imp__glColor3f'
//c/dev-c++/examples/opengl/accum.c:26: undefined reference to `_imp__glRectf'
//c/dev-c++/examples/opengl/accum.c:27: undefined reference to `_imp__glEndList'
c:/my documents/accum.o: In function `main':
//c/dev-c++/examples/opengl/accum.c:103: undefined reference to `glutInit'
//c/dev-c++/examples/opengl/accum.c:108: undefined reference to `glutInitDisplayMode'
//c/dev-c++/examples/opengl/accum.c:109: undefined reference to `glutInitWindowSize'
//c/dev-c++/examples/opengl/accum.c:110: undefined reference to `glutCreateWindow'
//c/dev-c++/examples/opengl/accum.c:114: undefined reference to `glutReshapeFunc'
//c/dev-c++/examples/opengl/accum.c:115: undefined reference to `glutKeyboardFunc'
//c/dev-c++/examples/opengl/accum.c:116: undefined reference to `glutDisplayFunc'
//c/dev-c++/examples/opengl/accum.c:117: undefined reference to `glutMainLoop'
c:/my documents/accum.o: In function `Reshape':
//c/dev-c++/examples/opengl/accum.c:33: undefined reference to `_imp__glViewport'
//c/dev-c++/examples/opengl/accum.c:35: undefined reference to `_imp__glMatrixMode'
//c/dev-c++/examples/opengl/accum.c:36: undefined reference to `_imp__glLoadIdentity'
//c/dev-c++/examples/opengl/accum.c:37: undefined reference to `_imp__glMatrixMode'
//c/dev-c++/examples/opengl/accum.c:38: undefined reference to `_imp__glLoadIdentity'
c:/my documents/accum.o: In function `Key':
//c/dev-c++/examples/opengl/accum.c:50: undefined reference to `_imp__glPolygonMode'
//c/dev-c++/examples/opengl/accum.c:51: undefined reference to `glutPostRedisplay'
c:/my documents/accum.o: In function `Draw':
//c/dev-c++/examples/opengl/accum.c:61: undefined reference to `_imp__glPushMatrix'
//c/dev-c++/examples/opengl/accum.c:63: undefined reference to `_imp__glScalef'
//c/dev-c++/examples/opengl/accum.c:65: undefined reference to `_imp__glClear'
//c/dev-c++/examples/opengl/accum.c:66: undefined reference to `_imp__glCallList'
//c/dev-c++/examples/opengl/accum.c:67: undefined reference to `_imp__glAccum'
//c/dev-c++/examples/opengl/accum.c:69: undefined reference to `_imp__glClear'
//c/dev-c++/examples/opengl/accum.c:70: undefined reference to `_imp__glCallList'
//c/dev-c++/examples/opengl/accum.c:71: undefined reference to `_imp__glAccum'
//c/dev-c++/examples/opengl/accum.c:73: undefined reference to `_imp__glAccum'
//c/dev-c++/examples/opengl/accum.c:75: undefined reference to `_imp__glPopMatrix'
//c/dev-c++/examples/opengl/accum.c:78: undefined reference to `glutSwapBuffers'
//c/dev-c++/examples/opengl/accum.c:80: undefined reference to `_imp__glFlush'
Could someone please tell me what it's looking for and what to do to fix it.