PDA

View Full Version : Trouble Using GLUT



dwilliams
09-23-2001, 12:57 PM
I am a first time user of GLUT. I am working with VC++ 6.0 and when I compile I get the following error

main.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12

My link settings look as follows:
opengl32.lib glut32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /incremental:yes /pdb:"Debug/asst1.pdb" /debug /machine:I386 /out:"Debug/asst1.exe" /pdbtype:sept

can anyone help.

Thanks

PG
09-23-2001, 09:40 PM
Is your project a WIN32 application and not a WIN32 CONSOLE application??

I had this problem as well and found that i was using the console and not just the app..

Hope it works
-PG



Originally posted by dwilliams:
I am a first time user of GLUT. I am working with VC++ 6.0 and when I compile I get the following error

main.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12

My link settings look as follows:
opengl32.lib glut32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /incremental:yes /pdb:"Debug/asst1.pdb" /debug /machine:I386 /out:"Debug/asst1.exe" /pdbtype:sept

can anyone help.

Thanks