PDA

View Full Version : unresolved external symbol Errors with glut



04-03-2002, 12:18 PM
write a siple code, i get this errors:
stipple.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
stipple.obj : error LNK2001: unresolved external symbol __imp__glFlush@0
stipple.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glLineWidth@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
stipple.obj : error LNK2001: unresolved external symbol __imp__glVertex2f@8
stipple.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glLineStipple@8
stipple.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
stipple.obj : error LNK2001: unresolved external symbol __imp__glClear@4
stipple.obj : error LNK2001: unresolved external symbol _gluOrtho2D@32
stipple.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
stipple.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
stipple.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
stipple.obj : error LNK2001: unresolved external symbol _glutReshapeFunc@4
stipple.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
stipple.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowPosition@8
stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
stipple.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
stipple.obj : error LNK2001: unresolved external symbol _glutInit@8
Debug/stipple.exe : fatal error LNK1120: 24 unresolved externals
Error executing link.exe.

stipple.exe - 25 error(s), 0 warning(s)
How do i get out of it?

nexusone
04-03-2002, 12:39 PM
The error is due to you not having the opengl library's listed in your linker?
Go to your linker setup and add opengl32.lib, glu32.lib, glut32.lib!



Originally posted by Aviv:
write a siple code, i get this errors:
stipple.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
stipple.obj : error LNK2001: unresolved external symbol __imp__glFlush@0
stipple.obj : error LNK2001: unresolved external symbol __imp__glDisable@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glLineWidth@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
stipple.obj : error LNK2001: unresolved external symbol __imp__glVertex2f@8
stipple.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glLineStipple@8
stipple.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
stipple.obj : error LNK2001: unresolved external symbol __imp__glClear@4
stipple.obj : error LNK2001: unresolved external symbol _gluOrtho2D@32
stipple.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0
stipple.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
stipple.obj : error LNK2001: unresolved external symbol __imp__glViewport@16
stipple.obj : error LNK2001: unresolved external symbol _glutMainLoop@0
stipple.obj : error LNK2001: unresolved external symbol _glutReshapeFunc@4
stipple.obj : error LNK2001: unresolved external symbol _glutDisplayFunc@4
stipple.obj : error LNK2001: unresolved external symbol _glutCreateWindow@4
stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowPosition@8
stipple.obj : error LNK2001: unresolved external symbol _glutInitWindowSize@8
stipple.obj : error LNK2001: unresolved external symbol _glutInitDisplayMode@4
stipple.obj : error LNK2001: unresolved external symbol _glutInit@8
Debug/stipple.exe : fatal error LNK1120: 24 unresolved externals
Error executing link.exe.

stipple.exe - 25 error(s), 0 warning(s)
How do i get out of it?

04-03-2002, 01:07 PM
thank uoy, now its down to:
stipple.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
stipple.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Debug/stipple.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
what next?