Compile Error ~

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

Dannla
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Mar 26, 2005 1:54 am

Compile Error ~

Post by Dannla » Fri Apr 01, 2005 1:02 pm

got 2 errors

MQ2-20050328\MQ2Main\MQ2Data.cpp(636) : error C2001: newline in constant
MQ2-20050328\MQ2Main\MQ2Data.cpp(637) : error C2143: syntax error : missing ')' before 'if'
Error executing cl.exe.

MQ2Main.dll - 2 error(s), 0 warning(s)

what i am missing?

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

Post by fearless » Fri Apr 01, 2005 1:22 pm

What are you using to compile?

(If it's the free ms tools shit, dkaa's going to hell)
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]

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 Apr 01, 2005 2:12 pm

We seen this problem before but I don't remember what the solution was. There is an ascii constant that is used on that line that some editors using certain codepages turn into a newline. If you re-extract mq2data.cpp from the zip and don't edit it, you should be okay.

Dannla
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Mar 26, 2005 1:54 am

Post by Dannla » Fri Apr 01, 2005 10:58 pm

i am using Microsoft Visual Studio 6.0 SP 6 to compile
and i did re-extract the MQ2data.cpp
still got the problem ~ :cry:

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 Apr 01, 2005 11:23 pm

You might need the english version....

Dannla
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Mar 26, 2005 1:54 am

Post by Dannla » Sat Apr 02, 2005 5:47 am

yes mine is english version

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 » Sat Apr 02, 2005 11:54 am

not your OS...

change

Code: Select all

pDefault=strtok(NULL,"▌");"
to

Code: Select all

pDefault=strtok(NULL,"|");
It's ascii character 166 (0xa6) and I'm not sure why it's in there.

Dannla
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Mar 26, 2005 1:54 am

Post by Dannla » Sat Apr 02, 2005 12:41 pm

wow, i got it now, thank you very much !!
u r my man !
:D

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Compile Error ~

Post by xyilla » Sun May 04, 2025 4:41 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Compile Error ~

Post by xyilla » Sun May 04, 2025 4:42 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Compile Error ~

Post by xyilla » Sun May 04, 2025 4:43 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Compile Error ~

Post by xyilla » Sun May 04, 2025 4:44 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Compile Error ~

Post by xyilla » Sun May 04, 2025 4:45 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Compile Error ~

Post by xyilla » Sun May 04, 2025 4:46 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Compile Error ~

Post by xyilla » Sun May 04, 2025 4:47 am