I'm migrating a codebase I am building from cygwin to a linux server.   It
compiles and runs fine on the cygwin server.   I am running Rom2.4b6, OLC
2.01, Lopes 2.0.   I get the following errors on compiling on the linux
server:

act_comm.c:2263: stray '\' in program
act_comm.c:2264: parse error before `}'
act_comm.c:2267: stray '\' in program
act_comm.c:2268: parse error before `}'
act_comm.c:2271: stray '\' in program
act_comm.c:2272: parse error before `}'
act_comm.c:2275: stray '\' in program
act_comm.c:2276: parse error before `}'
act_comm.c:2279: stray '\' in program
act_comm.c:2280: parse error before `}'
act_comm.c:2283: stray '\' in program
act_comm.c:2284: parse error before `}'
act_comm.c:2287: stray '\' in program
act_comm.c:2288: parse error before `}'
act_comm.c:2291: stray '\' in program
act_comm.c:2292: parse error before `}'
act_comm.c:2295: stray '\' in program
act_comm.c:2296: parse error before `}'
make: *** [act_comm.o] Error 1

When I compile a version with Rom2.4b6/OLC 2.01 without Lopes, it seems to
work ok.   The code the error is referencing is listed below:

   {
        ALTER_COLOUR( room_exits )
    }
    else if( !str_cmp( arg, "room_things" ) )
    {
        ALTER_COLOUR( room_things )
    }
    else if( !str_cmp( arg, "prompt" ) )
    {
        ALTER_COLOUR( prompt )
    }
    else if( !str_cmp( arg, "fight_death" ) )
    {
        ALTER_COLOUR( fight_death )
    }
    else if( !str_cmp( arg, "fight_yhit" ) )
    {
        ALTER_COLOUR( fight_yhit )
    }


I'm wondering if my Makefile is wrong, but I'm not sure because it works
without the color added in.  Any suggestions on how to fix this?  I've
attached the makefile as well.

Thanks for any/all help you can provide.

-Mike
CC      = gcc
PROF    = -O -g
NOCRYPT =
C_FLAGS =  -Wall $(PROF) $(NOCRYPT)
L_FLAGS =  $(PROF)
LIBS    = -lcrypt

O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
          alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o \
          handler.o healer.o interp.o note.o lookup.o magic.o magic2.o \
          music.o recycle.o save.o scan.o skills.o special.o tables.o \
          update.o mob_cmds.o mob_prog.o olc.o olc_act.o olc_save.o bit.o \
          mem.o string.o pedit.o hedit.o cmdedit.o raedit.o skedit.o \
          sedit.o gedit.o tablesave.o screen.o quest.o

rom: $(O_FILES)
        rm -f rom
        $(CC) $(L_FLAGS) -o rom $(O_FILES) $(LIBS)

.c.o: merc.h
        $(CC) -c $(C_FLAGS) $<

clean:
        rm *.o

Reply via email to