Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ ROM
➜ Compiling the server
➜ Problem Compiling Rom 2.4b4
|
Problem Compiling Rom 2.4b4
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Tidus
(11 posts) Bio
|
| Date
| Tue 15 Jan 2002 03:48 AM (UTC) |
| Message
| Okay I'm trying to compile Rom2.4b4 on linux and this is the error message I get, I can't seem to find anyone that knows how to help me. I hope you can. Thanks!
[xolethor@fate src]$ make &
[1] 12684
[xolethor@fate src]$ gcc -c -Wall -O -g act_comm.c
gcc -c -Wall -O -g act_enter.c
gcc -c -Wall -O -g act_info.c
act_info.c: In function `do_look':
act_info.c:1132: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:1141: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g act_move.c
gcc -c -Wall -O -g act_obj.c
act_obj.c: In function `do_put':
act_obj.c:431: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:469: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `get_cost':
act_obj.c:2488: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g act_wiz.c
gcc -c -Wall -O -g alias.c
gcc -c -Wall -O -g ban.c
gcc -c -Wall -O -g comm.c
gcc -c -Wall -O -g const.c
gcc -c -Wall -O -g db.c
gcc -c -Wall -O -g db2.c
gcc -c -Wall -O -g effects.c
gcc -c -Wall -O -g fight.c
fight.c: In function `one_hit':
fight.c:586: warning: suggest explicit braces to avoid ambiguous `else'
fight.c: In function `damage':
fight.c:960: warning: suggest explicit braces to avoid ambiguous `else'
fight.c: In function `damage_old':
fight.c:1276: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g flags.c
gcc -c -Wall -O -g handler.c
handler.c: In function `reset_char':
handler.c:569: warning: suggest explicit braces to avoid ambiguous `else'
handler.c: In function `get_max_train':
handler.c:765: warning: suggest explicit braces to avoid ambiguous `else'
handler.c: In function `unequip_char':
handler.c:1645: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g healer.c
gcc -c -Wall -O -g interp.c
gcc -c -Wall -O -g note.c
gcc -c -Wall -O -g lookup.c
gcc -c -Wall -O -g magic.c
magic.c: In function `obj_cast_spell':
magic.c:645: warning: suggest explicit braces to avoid ambiguous `else'
magic.c: In function `spell_earthquake':
magic.c:2205: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g magic2.c
gcc -c -Wall -O -g music.c
gcc -c -Wall -O -g recycle.c
gcc -c -Wall -O -g save.c
gcc -c -Wall -O -g scan.c
gcc -c -Wall -O -g skills.c
gcc -c -Wall -O -g special.c
gcc -c -Wall -O -g tables.c
gcc -c -Wall -O -g update.c
rm -f rom
gcc -O -g gcc -o rom 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 sc
an.o skills.o special.o tables.o update.o -lcrypt -o rom 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
gcc: gcc: No such file or directory
make: *** [rom] Error 1
[xolethor@fate src]$
[1] Exit 2 make
[xolethor@fate src]$
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 15 Jan 2002 03:53 AM (UTC) |
| Message
| I'm not sure about the "gcc -O -g gcc" bit. Sounds fishy. Looks like a minor problem with the makefile.
Maybe post the contents of "makefile"?
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Tue 15 Jan 2002 03:55 AM (UTC) |
| Message
| Mine looks like this:
CC = gcc
PROF = -O -g
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF)
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
rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Tidus
(11 posts) Bio
|
| Date
| Reply #3 on Tue 15 Jan 2002 04:06 AM (UTC) |
| Message
| Here are the contents of my Makefile:
CC = gcc
PROF = -O -g
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF) $(CC) -o rom $(O_FILES) -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
rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
| | Top |
|
| Posted by
| Tidus
(11 posts) Bio
|
| Date
| Reply #4 on Tue 15 Jan 2002 04:43 AM (UTC) |
| Message
| | got it to compile thanks! | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
17,889 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top