PDA

View Full Version : error when compile in devc++ 4 and 5



adh
07-19-2003, 07:22 AM
iam trying to compile an example of a little sample in c that use opengl and glut, devcpp give me these errors:

D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xb5):bezmesh.c: undefined reference to `glEnable@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xc5):bezmesh.c: undefined reference to `glEnable@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xde):bezmesh.c: undefined reference to `glLightfv@12'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0xf7):bezmesh.c: undefined reference to `glLightfv@12'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x110):bezmesh.c: undefined reference to `glMaterialfv@12'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x129):bezmesh.c: undefined reference to `glMaterialfv@12'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x142):bezmesh.c: undefined reference to `glMaterialfv@12'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x15f):bezmesh.c: undefined reference to `glClear@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x167):bezmesh.c: undefined reference to `glPushMatrix@0'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x187):bezmesh.c: undefined reference to `glRotatef@16'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x19c):bezmesh.c: undefined reference to `glEvalMesh2@20'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1a4):bezmesh.c: undefined reference to `glPopMatrix@0'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1a9):bezmesh.c: undefined reference to `glFlush@0'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1bf):bezmesh.c: undefined reference to `glClearColor@16'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1cc):bezmesh.c: undefined reference to `glEnable@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x1f7):bezmesh.c: undefined reference to `glMap2f@40'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x207):bezmesh.c: undefined reference to `glEnable@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x217):bezmesh.c: undefined reference to `glEnable@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x234):bezmesh.c: undefined reference to `glMapGrid2f@24'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x26b):bezmesh.c: undefined reference to `glViewport@16'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x278):bezmesh.c: undefined reference to `glMatrixMode@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x280):bezmesh.c: undefined reference to `glLoadIdentity@0'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x2e9):bezmesh.c: undefined reference to `glOrtho@48'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x34d):bezmesh.c: undefined reference to `glOrtho@48'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x35a):bezmesh.c: undefined reference to `glMatrixMode@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x362):bezmesh.c: undefined reference to `glLoadIdentity@0'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3ab):bezmesh.c: undefined reference to `glutInit@8'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3b8):bezmesh.c: undefined reference to `glutInitDisplayMode@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3cd):bezmesh.c: undefined reference to `glutInitWindowSize@8'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3dc):bezmesh.c: undefined reference to `glutInitWindowPosition@8'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x3ed):bezmesh.c: undefined reference to `glutCreateWindow@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x402):bezmesh.c: undefined reference to `glutReshapeFunc@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x412):bezmesh.c: undefined reference to `glutDisplayFunc@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x422):bezmesh.c: undefined reference to `glutKeyboardFunc@4'
D:\DOCUME~1\ADH~2.ADH\LOCALS~1\Temp\cckRaaaa.o(.te xt+0x42a):bezmesh.c: undefined reference to `glutMainLoop@0'


Anyone can help me. thank.

Some guy
07-19-2003, 02:33 PM
You must link to the OpenGL and GLUT libraries. The library names should be libopengl32.a and glut32.a