PDA

View Full Version : Linker Error.. Simple answer, please help me!!!



JLawson
10-25-2001, 10:36 AM
Linking...
main.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
main.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Debug/solarsystem.exe : fatal error LNK1120: 2 unresolved externals

Someone tell me how to fix that..

I have opengl32.lib glut32.lib and glu32.lib linked to my project (Im using MSVC6.0).. anyone have advice?

DFrey
10-25-2001, 10:52 AM
You have the wrong version of glut linked, or the linker can't find the glut lib in any of the lib directories. I tend to feel however, that it is likely the the first case, as I am sure your app uses more than just those two glut functions.