Page 1 of 1

Hello, Question about unresolved externals

Posted: Fri May 09, 2003 3:39 am
by darknoob
I got this errors and warnings when i compiling the cvs with VC 6 :

Code: Select all

..\Detours\lib60\detours.lib : warning LNK4003: invalid library format; library ignored
..\Detours\lib60\detours.lib : warning LNK4003: invalid library format; library ignored
   Creating library Release/eqlib.lib and object Release/eqlib.exp
..\Detours\lib60\detours.lib : warning LNK4003: invalid library format; library ignored
EQLib.obj : error LNK2001: unresolved external symbol _DetourRemove@8
EQLib.obj : error LNK2001: unresolved external symbol _DetourFunction@8
EQLib.obj : error LNK2001: unresolved external symbol _DetourFunctionWithEmptyTrampoline@12
..\Release\eqlib.dll : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

eqlib.dll - 4 error(s), 3 warning(s)
as i am a newbie on C++,i have no idea what error is unresolved externals, coz i have met this error on compiling other dll source

Posted: Fri May 09, 2003 5:23 pm
by eqjoe
Did you use the project files or the makefile? Looks like your missing ws2_32.lib in your object/library modules for your linker.












edit: WTF? no spell checker??

Posted: Fri May 09, 2003 5:36 pm
by dont_know_at_all
The detour functions are from detours.lib.

Your cvs download has apparently screwed up that library.

You can either turn off the cf/lf stuff in your cvs or get the whole detours package and build it yourself.

Posted: Sat May 10, 2003 4:18 am
by darknoob
Thx a lot....

eqjoe:i did both method but got the same result and i did a file search that the ws2_32.lib is in my VC6 lib dir

dont_know_at_all:after i copied the newest detours lib to mq's detour dir and did a compile ,i got this :

Code: Select all

Linking...
   Creating library Release/eqlib.lib and object Release/eqlib.exp
detours.lib(disasm.obj) : fatal error LNK1103: debugging information corrupt; recompile module
Error executing link.exe.

eqlib.dll - 1 error(s), 0 warning(s)
i tried to nmake the new detours src but it said the program database file detours.pdb has an obsolete format,delete it and recompile it but i donno how to recompile the pdb file out :(

Posted: Mon May 12, 2003 3:42 pm
by vzmule
I tried wincvs for the hell of it the other day instead of my regular cvs client. I tried compiling the current cvs source as a test and got the same errors. I then used visualcvs and had no errors building at all, so it has something to do with a setting on wincvs.