Here's the makefile...
CC = gcc
PROF = -O -ggdb
NOCRYPT = -DNOCRYPT -DOLD_RAND
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF)
LIBS = -lcrypt
SRC_FILES := $(wildcard *.c)
O_FILES := $(patsubst %.c, %.o, $(SRC_FILES))
rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
clean:
rm -f $(O_FILES) rom
Here's the error...
$ make
rm -f rom
gcc -O -ggdb -o rom NewMagic.o act_comm.o act_enter.o act_info.o act_move.o
act_newc.o act_obj.o act_wiz.o alias.o ban.o bank.o bit.o comm.o const
.o db.o db2.o effects.o fight.o flags.o handler.o healer.o hedit.o inte
rp.o lookup.o magic.o magic2.o mem.o mob_cmds.o mob_prog.o music.o note.
o olc.o olc_act.o olc_mpcode.o olc_save.o recycle.o remort.o save.o scan
.o skills.o special.o string.o tables.o update.o
act_info.o: In function `do_password':
/home/jmartin4/ghost/src/act_info.c:2925: undefined reference to `crypt'
/home/jmartin4/ghost/src/act_info.c:2940: undefined reference to `crypt'
act_newc.o: In function `do_rsetpword':
/home/jmartin4/ghost/src/act_newc.c:1193: undefined reference to `crypt'
comm.o: In function `nanny':
/home/jmartin4/ghost/src/comm.c:1816: undefined reference to `crypt'
/home/jmartin4/ghost/src/comm.c:1951: undefined reference to `crypt'
comm.o:/home/jmartin4/ghost/src/comm.c:1972: more undefined references to `crypt
' follow
collect2: ld returned 1 exit status
make: *** [rom] Error 1
i went back through your suggestions for the older version, but the crypt error obviously didnt solve it... any suggestion
CC = gcc
PROF = -O -ggdb
NOCRYPT = -DNOCRYPT -DOLD_RAND
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF)
LIBS = -lcrypt
SRC_FILES := $(wildcard *.c)
O_FILES := $(patsubst %.c, %.o, $(SRC_FILES))
rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
clean:
rm -f $(O_FILES) rom
Here's the error...
$ make
rm -f rom
gcc -O -ggdb -o rom NewMagic.o act_comm.o act_enter.o act_info.o act_move.o
act_newc.o act_obj.o act_wiz.o alias.o ban.o bank.o bit.o comm.o const
.o db.o db2.o effects.o fight.o flags.o handler.o healer.o hedit.o inte
rp.o lookup.o magic.o magic2.o mem.o mob_cmds.o mob_prog.o music.o note.
o olc.o olc_act.o olc_mpcode.o olc_save.o recycle.o remort.o save.o scan
.o skills.o special.o string.o tables.o update.o
act_info.o: In function `do_password':
/home/jmartin4/ghost/src/act_info.c:2925: undefined reference to `crypt'
/home/jmartin4/ghost/src/act_info.c:2940: undefined reference to `crypt'
act_newc.o: In function `do_rsetpword':
/home/jmartin4/ghost/src/act_newc.c:1193: undefined reference to `crypt'
comm.o: In function `nanny':
/home/jmartin4/ghost/src/comm.c:1816: undefined reference to `crypt'
/home/jmartin4/ghost/src/comm.c:1951: undefined reference to `crypt'
comm.o:/home/jmartin4/ghost/src/comm.c:1972: more undefined references to `crypt
' follow
collect2: ld returned 1 exit status
make: *** [rom] Error 1
i went back through your suggestions for the older version, but the crypt error obviously didnt solve it... any suggestion