Compiling Problem, pls help

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

Ayla
orc pawn
orc pawn
Posts: 12
Joined: Mon May 26, 2003 11:05 pm

Compiling Problem, pls help

Post by Ayla » Mon May 26, 2003 11:08 pm

Okay, I did use the search feature and I couldn't find anything with this specific error, and I was following the step by step from the link in the top sticky topic, and when I type the first nmake I get this error:
LINK : fatal error LNK1104: cannon open file 'detours.lib'
NMAKE : fatal error U1007: 'link.exe' : return code '0x450'
Stop.
where did I go wrong?

TheColonel
of what?
of what?
Posts: 164
Joined: Thu Oct 10, 2002 6:34 pm
Location: Golden, CO
Contact:

Post by TheColonel » Tue May 27, 2003 12:35 am

Sounds like you either don't have detours.lib, (used to be compiled from a download, now it's included) I suggest ensuring you've got the latest CVS or checking inside the makefile to make sure it's pointing to the path of the Detour.lib, which means you'll have to verify it's existance by searching your own HD for it.
Hell hath no fury like a woman's scorn for EQ.
-==(UDIC)==-

Ayla
orc pawn
orc pawn
Posts: 12
Joined: Mon May 26, 2003 11:05 pm

Post by Ayla » Tue May 27, 2003 12:58 am

I know the detours.lib file is there, I went and checked and everything. I don't get it, I got all the files using winCVS, so it's not an out dated version or anything...

What exactly do I look for in the makefile to make sure it's pointing to them? I opened it up, but don't know anything about the coding so I quickly closed it.

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 » Tue May 27, 2003 2:58 am

It's either /libpath:"..\Detours\lib" or /libpath:"..\Detours\lib60"

do you get messages like this?
Cannot determine compiler version.
use set COMPILER=6
or set COMPILER=7
as appropriate

Ayla
orc pawn
orc pawn
Posts: 12
Joined: Mon May 26, 2003 11:05 pm

Post by Ayla » Tue May 27, 2003 3:16 am

Yea I get that exact message, but it continued on after that so I ignored it. What should I do to fix it?

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Tue May 27, 2003 9:04 am

What he's saying is that if you get the Compiler Version error message, you need to put "set COMPILER=6" or "set COMPILER=7" into the makefile.
MQ2: Think of it as Evolution in action.

Ayla
orc pawn
orc pawn
Posts: 12
Joined: Mon May 26, 2003 11:05 pm

Post by Ayla » Tue May 27, 2003 1:15 pm

Oh, right, duh. Well when I add "set compiler=7" (or 6) I get this error:
makefile(44) : fatal error U1036: syntax error : too many names to left of '='
Stop.
Okay, and if this helps this is what it says in my makefile about the detours.lib:
!if "$(_NMAKE_VER)" == "7.00.9466"
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /dll /incremental:no /debug /pdb:"$(OUTDIR)\eqlib.pdb" /machine:I386 /out:"$(OUTDIR)\eqlib.dll" /implib:"$(OUTDIR)\eqlib.lib" /libpath:"..\Detours\lib"
!elseif "$(_NMAKE_VER)" == "6.00.8168.0"
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /dll /incremental:no /debug /pdb:"$(OUTDIR)\eqlib.pdb" /machine:I386 /out:"$(OUTDIR)\eqlib.dll" /implib:"$(OUTDIR)\eqlib.lib" /libpath:"..\Detours\lib60"
!elseif "$(COMPILER)" == "6"
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /dll /incremental:no /debug /pdb:"$(OUTDIR)\eqlib.pdb" /machine:I386 /out:"$(OUTDIR)\eqlib.dll" /implib:"$(OUTDIR)\eqlib.lib" /libpath:"..\Detours\lib60"
!elseif "$(COMPILER)" == "7"
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib /nologo /dll /incremental:no /debug /pdb:"$(OUTDIR)\eqlib.pdb" /machine:I386 /out:"$(OUTDIR)\eqlib.dll" /implib:"$(OUTDIR)\eqlib.lib" /libpath:"..\Detours\lib"
!else
!message Cannot determine compiler version.
!message use set COMPILER=6
!message or set COMPILER=7
!message as appropriate
!endif
I did take a basic programming course a lil while ago, so I do sort of know what this means... means it ran through this code, couldn't detect the compiler version, so it put out the text to set it myself. I tried setting it, but I an got the error I posted above. Help prs!

Ayla
orc pawn
orc pawn
Posts: 12
Joined: Mon May 26, 2003 11:05 pm

Post by Ayla » Tue May 27, 2003 2:07 pm

Nevermind I figured it out and currently have it running and working. Thanks for the help guys.