Page 1 of 2

Compiling problem

Posted: Sun May 18, 2003 11:07 am
by Renian
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.

Posted: Sun May 18, 2003 1:44 pm
by dont_know_at_all
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.

Posted: Sun May 18, 2003 3:47 pm
by Renian

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.

Posted: Sun May 18, 2003 5:06 pm
by dont_know_at_all
Renian wrote: CVS was downloaded with WinCVS with the Unix LF option checked.
No, it wasn't. Try again.

Posted: Sun May 18, 2003 5:24 pm
by Renian
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?

Posted: Sun May 18, 2003 7:24 pm
by dont_know_at_all

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?

Posted: Sun May 18, 2003 8:40 pm
by Renian
Nope. It just doesn't like the -@erase command.

Maybe my NMAKE is retarded. *shrugs*

Posted: Sun May 18, 2003 8:44 pm
by dont_know_at_all
It just doesn't like extra CR/LF injected by CVS.

Posted: Sun May 18, 2003 9:13 pm
by Renian
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 :)

Posted: Sun May 18, 2003 9:28 pm
by dont_know_at_all
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.

Posted: Sun May 18, 2003 11:01 pm
by Renian
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

Posted: Sun May 18, 2003 11:05 pm
by Amadeus
Use this instead...I have few problems with it and have enjoyed it:

http://www.tortoisecvs.org/

Posted: Sat May 24, 2003 7:28 pm
by Renian
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.

Posted: Sun May 25, 2003 12:34 pm
by eqjoe
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.....

Posted: Tue May 27, 2003 1:25 pm
by vzmule
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.