PDA

View Full Version : linking problem



dummy_24
02-06-2004, 04:52 PM
i have win2000 and vc 5.0++. when i try to run openGL programs after successful compilation i get these messages.

Linking...
test.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
test.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Debug/cg.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

this is after i include glu32.lib, glut32.lib, opengl32.lib and glaux.lib in the project/link/object module settings. also i open a winconsole 32 application to run the code. somebody plz help me and get me started.

chowe6685
02-06-2004, 07:50 PM
try:

#define GLUT_DISABLE_ATEXIT_HACK