frustrated while trying to compile

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

Moderator: MacroQuest Developers

pucalee
decaying skeleton
decaying skeleton
Posts: 4
Joined: Tue Oct 07, 2003 1:57 pm

frustrated while trying to compile

Post by pucalee » Tue Oct 07, 2003 2:22 pm

I have been trying to compile MQ for 3 whole days and it just doesn't seem to work.
Here's what I did;
1. Installed VS6.0 and WinCVS1.2, downloaded source through CVS and tried to compile it with nmake.exe in DOS command prompt. It worked and i ran the .exe, but it seemed like an outdated source so wouldn't run with currunt version of EQ.
2. I noticed that .zip version is more up to date than CVS version(maybe they are all the same ATM) so I installed full version of painful VS.NET(VS7.0 included) and tried to compile it. And i got all the errors like these(tried on both MacroQuest.sln and EQLib.vcproj).

Code: Select all

Compiling...
stdafx.cpp
EQLib_Utilities.cpp
EQLib_UserVars.cpp
EQLib_UserVars.cpp(291) : error C2001: newline in constant
EQLib_UserVars.cpp(292) : warning C4305: '=' : truncation from 'int' to 'CHAR'
EQLib_UserVars.cpp(292) : warning C4309: '=' : truncation of constant value
EQLib_UserVars.cpp(292) : error C2143: syntax error : missing ';' before '}'
EQLib_TelnetServer.cpp
EQLib_Mouse.cpp
EQLib_MemChecks.cpp
EQLib_Main.cpp
EQLib_MacroParser.cpp
EQLib_MacroParser.cpp(238) : error C2001: newline in constant
EQLib_MacroParser.cpp(239) : warning C4305: '=' : truncation from 'int' to 'CHAR'
EQLib_MacroParser.cpp(239) : warning C4309: '=' : truncation of constant value
EQLib_MacroParser.cpp(239) : error C2146: syntax error : missing ';' before identifier 'j'
EQLib_MacroParser.cpp(266) : error C2001: newline in constant
EQLib_MacroParser.cpp(267) : warning C4305: '=' : truncation from 'int' to 'CHAR'
EQLib_MacroParser.cpp(267) : warning C4309: '=' : truncation of constant value
EQLib_MacroParser.cpp(267) : error C2146: syntax error : missing ';' before identifier 'j'
EQLib_MacroParser.cpp(319) : error C2015: too many characters in constant
EQLib_MacroParser.cpp(319) : error C2018: unknown character '0x40'; unicode identifiers are not supported
EQLib_MacroParser.cpp(319) : error C2001: newline in constant
EQLib_MacroParser.cpp(319) : error C2143: syntax error : missing ')' before 'constant'
EQLib_MacroParser.cpp(320) : error C2143: syntax error : missing ';' before '}'
EQLib_MacroCommands.cpp
EQLib_Interp.cpp
EQLib_Hooks.cpp
EQLib_Commands.cpp
I have been through all this forum and couldn't find out this kind of problem involving currunt version of MQ.
I know I'm a total noob in this field of programming, but I trying really hard. Please help me out.

Jaerin
Developer
Developer
Posts: 133
Joined: Mon Mar 10, 2003 7:37 pm
Contact:

Post by Jaerin » Tue Oct 07, 2003 3:24 pm

The CVS client you're using is probably converting the carriage returns. Try using Cygwin with the CVS package. That seems to work well or there may be an option in your CVS client to use UNIX style files.

Jaerin

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

Post by Mckorr » Tue Oct 07, 2003 3:37 pm

There's an option in WinCVS to use Unix style LF and CR.
MQ2: Think of it as Evolution in action.

pucalee
decaying skeleton
decaying skeleton
Posts: 4
Joined: Tue Oct 07, 2003 1:57 pm

that option already checked

Post by pucalee » Tue Oct 07, 2003 7:36 pm

I have read most of post which refers to the compiling, and I already checked that option in WinCVS.

Preference -> Global -> Checkout text files with the Unix LF -> Check!

The problem seems to lie somewhere else.

pucalee
decaying skeleton
decaying skeleton
Posts: 4
Joined: Tue Oct 07, 2003 1:57 pm

could this be the cause of the problem?

Post by pucalee » Tue Oct 07, 2003 11:01 pm

I use none-english Windows2000. Could this be the cause of the problem? Anyone heard of this case?

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 Oct 07, 2003 11:35 pm

There are non-printable UNICODE characters inside strings that Plaz used for variable recursion. You are using a Japanese machine, yes?

If you can, edit the files:
EQLib_UserVars.cpp(291)
EQLib_MacroParser.cpp(238)
EQLib_MacroParser.cpp(266)
EQLib_MacroParser.cpp(319)

And put your own favorite unprintable character in as a marker for recursive variables. There are other places that he did this so I'm gonna have to let him fix it lest I break it worse.

Plaz, how 'bout some #define's for these so that MBCS machines can compile?

pucalee
decaying skeleton
decaying skeleton
Posts: 4
Joined: Tue Oct 07, 2003 1:57 pm

solved the problem

Post by pucalee » Wed Oct 08, 2003 9:13 pm

I just got it compiled on a pc with english-localed os.
Thanks for your posts guys!