compiling problem:"Cannot open file ..\MQ2Main.lib"

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Nyal
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sat Mar 05, 2005 1:26 pm

compiling problem:"Cannot open file ..\MQ2Main.lib"

Post by Nyal » Wed Apr 06, 2005 10:19 am

Hello everyone

I have been reading a lot of posts here and been trying to compile MQ2 via several ways, including " VC++ 6.0 ", " VS .NET 2003 ", and " Microsoft Visual C++ Toolkit 2003 + Microsoft Platform SDK + eMbedded Visual C++ 4.0 " , but I always meet the same problem listed below.

I followed the instruction exactly, eg. run MQ2Auth prior to compiling. Also, my computer OS is Windows XP, which has no antivirus program istalled.

Now I really don't know what I can do any more. And file transfer via internet isn't allowed any more in VS .NET trial server. Please help me ~~
I can't live without MQ2 playing EQ any second longer =(

Code: Select all


---- starting to build: batch: MQ2Main, config: Release Win32 ------

compiling...
MQ2Windows.cpp
MQ2Utilities.cpp
MQ2Spawns.cpp
MQ2Pulse.cpp
MQ2PluginHandler.cpp
MQ2ParseAPI.cpp
MQ2Mouse.cpp
MQ2Main.cpp
EQLIB_EXPORTS
MQ2MacroCommands.cpp
MQ2KeyBinds.cpp
MQ2Globals.cpp
MQ2DetourAPI.cpp
MQ2DataVars.cpp
MQ2DataTypes.cpp
MQ2DataAPI.cpp
MQ2Data.cpp
MQ2Data.cpp(636) : error C2001: newline in constant
MQ2Data.cpp(637) : error C2143: syntax error : missing ')' before 'if'
MQ2DInput.cpp
MQ2Commands.cpp
MQ2CommandAPI.cpp
MQ2CleanUI.cpp
generating code...
compiling...
MQ2ChatHook.cpp
MQ2Benchmarks.cpp
MQ2Auth.cpp
EQClasses.cpp
generating code...

build record saved in "file://e:\EverQuest\Mq20328\MQ2Main\Intermediate\BuildLog.htm"
MQ2Main - 2 error ;0 warning


------ starting to build: batch: MQ2CustomBinds, config: Release Win32 ------

compiling...
MQ2CustomBinds.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2CustomBinds.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2CustomBinds.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2CustomBinds.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2CustomBinds.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2CustomBinds\Intermediate\BuildLog.htm"
MQ2CustomBinds - 1 error ;0 warning


------ starting to build: batch: MQ2Bzsrch, config: Release Win32 ------

compiling...
MQ2Bzsrch.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2Bzsrch.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2Bzsrch.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Bzsrch.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2Bzsrch.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2Bzsrch\Intermediate\BuildLog.htm"
MQ2Bzsrch - 1 error ;0 warning


------ starting to build: batch: MQ2EQIM, config: Release Win32 ------

compiling...
MQ2EQIM.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2EQIM.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2EQIM.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2EQIM.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2EQIM.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\Mq2eqim\Intermediate\BuildLog.htm"
MQ2EQIM - 1 error ;0 warning


------ starting to build: batch: MQ2Irc, config: Release Win32 ------

compiling...
MQ2Irc.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2Irc.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2Irc.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Irc.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2Irc.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2Irc\Intermediate\BuildLog.htm"
MQ2Irc - 1 error ;0 warning


------ starting to build: batch: MQ2HUD, config: Release Win32 ------

compiling...
MQ2HUD.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2HUD.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2HUD.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2HUD.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2HUD.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\Mq2hud\Intermediate\BuildLog.htm"
MQ2HUD - 1 error ;0 warning


------ starting to build: batch: MQ2EQBugFix, config: Release Win32 ------

compiling...
MQ2EQBugFix.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2EQBugFix.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2EQBugFix.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2EQBugFix.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2EQBugFix.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2EQBugFix\Intermediate\BuildLog.htm"
MQ2EQBugFix - 1 error ;0 warning


------ starting to build: batch: MQ2Telnet, config: Release Win32 ------

compiling...
mq2telnet.cpp
EQLIB_IMPORTS
WinTelnet.cpp
TelnetServer.cpp
EQLIB_IMPORTS
generating code...
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2Telnet.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2Telnet.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Telnet.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
.\intermediate\TelnetServer.obj 
.\intermediate\WinTelnet.obj 
.\intermediate\mq2telnet.obj 
LINK : fatal error LNK1104: Cannot open file 'MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\mq2telnet\Intermediate\BuildLog.htm"
MQ2Telnet - 1 error ;0 warning


------ starting to build: batch: MQ2ChatWnd, config: Release Win32 ------

compiling...
MQ2ChatWnd.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2ChatWnd.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2ChatWnd.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2ChatWnd.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2ChatWnd.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2ChatWnd\Intermediate\BuildLog.htm"
MQ2ChatWnd - 1 error ;0 warning


------ starting to build: batch: MQ2ItemDisplay, config: Release Win32 ------

compiling...
MQ2ItemDisplay.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2ItemDisplay.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2ItemDisplay.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2ItemDisplay.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2ItemDisplay.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2ItemDisplay\Intermediate\BuildLog.htm"
MQ2ItemDisplay - 1 error ;0 warning


------ starting to build: batch: MQ2Map, config: Release Win32 ------

compiling...
MQ2MapCommands.cpp
EQLIB_IMPORTS
MQ2MapAPI.cpp
EQLIB_IMPORTS
MQ2Map.cpp
EQLIB_IMPORTS
generating code...
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2Map.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2Map.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Map.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2Map.obj 
.\intermediate\MQ2MapAPI.obj 
.\intermediate\MQ2MapCommands.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2Map\Intermediate\BuildLog.htm"
MQ2Map - 1 error ;0 warning


------ starting to build: batch: MQ2Labels, config: Release Win32 ------

compiling...
MQ2Labels.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2Labels.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2Labels.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Labels.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\Intermediate\MQ2Labels.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2Labels\Intermediate\BuildLog.htm"
MQ2Labels - 1 error ;0 warning


------ starting to build: batch: MQ2Chat, config: Release Win32 ------

compiling...
MQ2Chat.cpp
EQLIB_IMPORTS
linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:..\Release/MQ2Chat.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /DEBUG "/PDB:..\Release/MQ2Chat.pdb" /MAP /MAPINFO:EXPORTS /MAPINFO:LINES /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Chat.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \EverQuest\Mq20328\Release\MQ2Main.lib 
.\intermediate\MQ2Chat.obj 
LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'

build record saved in "file://e:\EverQuest\Mq20328\MQ2Chat\Intermediate\BuildLog.htm"
MQ2Chat - 1 error ;0 warning


---------------------- completed----------------------

    build: 0 success ;13 failures ;0 ignore




I added a link on [[MacroQuest2:Compiling]] "Troubleshooting" section
which is titled with "LINK : fatal error LNK1181: Cannot open file '\EverQuest\Mq20328\Release\MQ2Main.lib'" and "MQ2Data.cpp(636) : error C2001: contains a new line character in constant" and "MQ2Data.cpp(637) : error C2143: syntax error : missing ')' (before 'if' )" . Although I have no idea how to deal this at all.
Last edited by Nyal on Wed Apr 06, 2005 1:44 pm, edited 1 time in total.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Apr 06, 2005 10:52 am

And you are obviously using the latest zip file . . . right?
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Nyal
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sat Mar 05, 2005 1:26 pm

Post by Nyal » Wed Apr 06, 2005 12:15 pm

Yeah.

But this problem has bothered me for a long time since I started to use MQ2. I used to compile it on VS .NET trial server, so I could still play EQ with MQ2 while this compiling problem remained on my computer. But the server is odd now, it's not able to transfer files any more. So I am really in no hope now.... :(

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 » Wed Apr 06, 2005 12:44 pm


Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 06, 2005 1:15 pm

You get half credit for your wiki edit.. Up until the "Really don't know how to dolve this 8(" part, its better than most attempts.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Nyal
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sat Mar 05, 2005 1:26 pm

Post by Nyal » Wed Apr 06, 2005 1:41 pm

OMG, dont_know_at_all you own !!

It works !!


This is the detail to solve the problem based on what dont_know_at_all suggests :


1. Open MQ2main/MQ2data.cpp with notepad and set encoding type as UTF-8

2. Search the problematic line by keyin phrase :

pDefault=strtok(NULL

3. Modify the line to

pDefault=strtok(NULL,"|");

( "|" is ascii character 166 (0xa6))

4. Save


Then you're gtg.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Apr 06, 2005 1:49 pm

Update the wiki Nyal.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Nyal
decaying skeleton
decaying skeleton
Posts: 5
Joined: Sat Mar 05, 2005 1:26 pm

Post by Nyal » Wed Apr 06, 2005 1:53 pm

Done =)

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 » Wed Apr 06, 2005 5:16 pm

I hoping to get a chance to analyze this an fix it correctly. Anyone can jump in an help.

Is there really a need for a somewhat unprintable ascii character in that string?

Do we use it anywhere else?

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 06, 2005 11:47 pm

can always do something like:

Temp[2];
Temp[0]=0xa6;
Temp[1]=0;

pDefault=strtok(NULL,Temp);
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

User avatar
htw
a grimling bloodguard
a grimling bloodguard
Posts: 512
Joined: Wed Feb 18, 2004 8:30 pm
Location: Albuquerque, NM USA
Contact:

Post by htw » Thu Apr 07, 2005 12:01 pm

Code: Select all

 pDefault=strtok(NULL,"\xa6");

or

pDefault=strtok(NULL,"\246");
Either should work fine.

htw