Register forum user name Search FAQ

Gammon Forum

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 ➜ Problems compiling

Problems compiling

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Peroxide   (3 posts)  Bio
Date Thu 17 Oct 2002 01:15 PM (UTC)
Message
Linux 2.4.9-34 i686

This is what I get when I do a make.

$ make
gcc -c -Wall -O -g -Dunix act_comm.c
gcc -c -Wall -O -g -Dunix act_enter.c
gcc -c -Wall -O -g -Dunix act_info.c
act_info.c: In function `do_look':
act_info.c:1122: warning: suggest explicit braces to avoid ambiguous `else'
act_info.c:1131: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -Dunix act_move.c
gcc -c -Wall -O -g -Dunix act_obj.c
act_obj.c: In function `do_put':
act_obj.c:424: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:462: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `get_cost':
act_obj.c:2481: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -Dunix act_wiz.c
gcc -c -Wall -O -g -Dunix alias.c
gcc -c -Wall -O -g -Dunix ban.c
gcc -c -Wall -O -g -Dunix comm.c
comm.c: In function `process_output':
comm.c:1256: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -Dunix const.c
gcc -c -Wall -O -g -Dunix db.c
db.c: In function `assign_area_vnum':
db.c:3111: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -Dunix db2.c
gcc -c -Wall -O -g -Dunix effects.c
gcc -c -Wall -O -g -Dunix fight.c
fight.c: In function `one_hit':
fight.c:571: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -Dunix flags.c
gcc -c -Wall -O -g -Dunix handler.c
handler.c: In function `material_lookup':
handler.c:114: warning: comparison between pointer and integer
handler.c: In function `reset_char':
handler.c:580: warning: suggest explicit braces to avoid ambiguous `else'
handler.c: In function `get_max_train':
handler.c:776: warning: suggest explicit braces to avoid ambiguous `else'
handler.c: In function `unequip_char':
handler.c:1659: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -Dunix healer.c
gcc -c -Wall -O -g -Dunix interp.c
gcc -c -Wall -O -g -Dunix note.c
gcc -c -Wall -O -g -Dunix lookup.c
lookup.c: In function `flag_lookup':
lookup.c:42: warning: comparison between pointer and integer
gcc -c -Wall -O -g -Dunix magic.c
magic.c: In function `obj_cast_spell':
magic.c:643: warning: suggest explicit braces to avoid ambiguous `else'
magic.c: In function `spell_earthquake':
magic.c:2203: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -Dunix magic2.c
gcc -c -Wall -O -g -Dunix music.c
gcc -c -Wall -O -g -Dunix recycle.c
gcc -c -Wall -O -g -Dunix save.c
gcc -c -Wall -O -g -Dunix scan.c
gcc -c -Wall -O -g -Dunix skills.c
gcc -c -Wall -O -g -Dunix special.c
gcc -c -Wall -O -g -Dunix tables.c
gcc -c -Wall -O -g -Dunix update.c
rm -f rom
gcc -O -g -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 -lcrypt
comm.o: In function `game_loop_unix':
/home/peroxide/mud/Rom24/src/comm.c:787: undefined reference to `string_add'
/home/peroxide/mud/Rom24/src/comm.c:792: undefined reference to `run_olc_editor'
handler.o: In function `material_lookup':
/home/peroxide/mud/Rom24/src/handler.c:114: undefined reference to `material_type'
/home/peroxide/mud/Rom24/src/handler.c:114: undefined reference to `material_type'
/home/peroxide/mud/Rom24/src/handler.c:114: undefined reference to `material_type'
/home/peroxide/mud/Rom24/src/handler.c:114: undefined reference to `material_type'
handler.o: In function `material_name':
/home/peroxide/mud/Rom24/src/handler.c:127: undefined reference to `material_type'
interp.o: In function `do_wizhelp':
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_olc'
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_aedit'
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_redit'
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_medit'
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_oedit'
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_asave'
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_alist'
/home/peroxide/mud/Rom24/src/interp.c:808: undefined reference to `do_resets'
collect2: ld returned 1 exit status
make: *** [rom] Error 1
Top

Posted by Peroxide   (3 posts)  Bio
Date Reply #1 on Thu 17 Oct 2002 01:17 PM (UTC)
Message
This is my makefile

CC = gcc
PROF = -O -g
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT) -Dunix
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

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

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

Posted by Peroxide   (3 posts)  Bio
Date Reply #2 on Thu 17 Oct 2002 01:19 PM (UTC)
Message
Using Rom24b6OLC.tar.gz by the way
gcc 2.96
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.


13,253 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.