Compiling problem

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

Renian
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat May 17, 2003 11:25 pm

Compiling problem

Post by Renian » Sun May 18, 2003 11:07 am

I keep getting this error with the NMAKE command.

makefile(17) : fatal error U1033: syntax error : '-@erase' unexpected
Stop.

Any help would be appreciated. Thanks.

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 » Sun May 18, 2003 1:44 pm

Post the first 10 lines of your makefile.

This is probably related to the unix/dos text mode problem. Remember to use unix mode so that extra CRs are not added.

Renian
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat May 17, 2003 11:25 pm

Post by Renian » Sun May 18, 2003 3:47 pm

Code: Select all

DXSDK=..\dxsdk81\include\dinput.h

OUTDIR=..\Release

INTDIR=.\Release



ALL : "$(OUTDIR)\eqlib.dll"





CLEAN :

	-@erase "$(INTDIR)\EQLib.obj"

	-@erase "$(INTDIR)\EQLib.res"
The first line was changed to make it point to dinput.h. If reverted back, I get the U1035 error.

CVS was downloaded with WinCVS with the Unix LF option checked.

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 » Sun May 18, 2003 5:06 pm

Renian wrote: CVS was downloaded with WinCVS with the Unix LF option checked.
No, it wasn't. Try again.

Renian
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat May 17, 2003 11:25 pm

Post by Renian » Sun May 18, 2003 5:24 pm

Yes, it was. I redownloaded it just to make sure, and now it gives me the U1035 error for line 5. If I change line 1 to make it point to dinput.h, it brings me right back to where I started.

I'm using the dinput.h that came with macroquest. If that is the real problem, where could I find an update?

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 » Sun May 18, 2003 7:24 pm

Code: Select all

DXSDK=..\dxsdk81
OUTDIR=..\Release
INTDIR=.\Release

ALL : "$(OUTDIR)\eqlib.dll"


CLEAN :
        -@erase "$(INTDIR)\EQLib.obj"
        -@erase "$(INTDIR)\EQLib.res"
        -@erase "$(INTDIR)\PerlMod.obj"
        -@erase "$(INTDIR)\PerlModCore.obj"
        -@erase "$(INTDIR)\stdafx.obj"

See any extra CF/LF here?

Renian
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat May 17, 2003 11:25 pm

Post by Renian » Sun May 18, 2003 8:40 pm

Nope. It just doesn't like the -@erase command.

Maybe my NMAKE is retarded. *shrugs*

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 » Sun May 18, 2003 8:44 pm

It just doesn't like extra CR/LF injected by CVS.

Renian
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat May 17, 2003 11:25 pm

Post by Renian » Sun May 18, 2003 9:13 pm

Well, I was going by what I saw, and it looked almost no different than what you posted. However, I'm basically a n00b, so I don't really know how to tell...since I don't know what CR/LF means. *ducks*

Oh, by the way, thanks in advance to helping me on this :)

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 » Sun May 18, 2003 9:28 pm

I can tell by looking at your makefile that CVS added extra Carriage Returns (CRs) into your files. Your makefile should look exactly like the one I posted.

Blank lines in makefiles means end of rule. As you can imagine, an extra line after every line will make the makefile unusable.

Mess with the CVS text options some more. You need to get the source w/out extra lines. You should not need to modify the makefile to build.

Renian
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat May 17, 2003 11:25 pm

Post by Renian » Sun May 18, 2003 11:01 pm

Messed around with WinCVS's options a bit. Nothing. Here's what I have on:

CVSROOT: anonymous@cvs.sourceforge.net:/cvsroot/macroquest
Authentication: "Passwrd" file on the cvs server
Use Version: CVS-1.10 (NT server)

Checkout Read Only
Dirty Files Support
Supply control when adding files
Checkout files with Unix LF

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sun May 18, 2003 11:05 pm

Use this instead...I have few problems with it and have enjoyed it:

http://www.tortoisecvs.org/

Renian
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat May 17, 2003 11:25 pm

Post by Renian » Sat May 24, 2003 7:28 pm

Well, TortoiseCVS didn't work for me either, but I tried something else that did.

Linux's CVS. If all the other CVS's fail, just use Linux. I installed it, got Linux AIM, and sent it to myself. It compiled perfectly.

I don't know why I didn't think of this before. Thanks, everyone who helped anyway.

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

Post by eqjoe » Sun May 25, 2003 12:34 pm

I always pull down CVS from my Linux box and FTP it over to my XP system because none of the Winblows versions of CVS are worth a damn.

YMMV.....

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

Post by vzmule » Tue May 27, 2003 1:25 pm

You sir, are the man. VisualCVS is the best cvs client I've found so far, but the price is $300 to use it after the 30 day demo, and as I've been too lazy to crack it, and too cheap to buy it, I've been uninstalling it and reinstalling it.

I'll just use my own linux server to cvs it. That make so much more sense.