PDA

View Full Version : what are unresolved externals???



cali
09-28-2001, 12:25 AM
I keep getting these errors....can't seem to fix them..

--------------------Configuration: woo - Win32 Debug--------------------
Linking...
woosource.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
woosource.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/woo.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

woo.exe - 4 error(s), 0 warning(s)


any suggestions???

Fastian
09-28-2001, 12:45 AM
Unresolved externals occur when linker cannot find the memory mapping of a function/variable that is called in the program.

To correct your error include glut32.lib in your project settings. It mapps the memory address of the function to the one in the glut32.dll so that the linker can find it there.

There sometimes is a problem when you are using incompatible versions of dll, lib and /or header files. Make sure all are consistent (i.e. belong to the same version)

Fastian