Hello, Question about unresolved externals

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

darknoob
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri May 09, 2003 3:29 am

Hello, Question about unresolved externals

Post by darknoob » Fri May 09, 2003 3:39 am

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

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Post by eqjoe » Fri May 09, 2003 5:23 pm

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??

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Fri May 09, 2003 5:36 pm

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.

darknoob
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri May 09, 2003 3:29 am

Post by darknoob » Sat May 10, 2003 4:18 am

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 :(

User avatar
vzmule
Contributing Member
Contributing Member
Posts: 378
Joined: Thu Mar 13, 2003 11:56 pm

Post by vzmule » Mon May 12, 2003 3:42 pm

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.