Please help me fix my makefile.

Posted by WangFoo on Sun 18 Aug 2002 05:28 PM — 4 posts, 16,259 views.

#0
Ok, I just found out that I can't post everything. so here is a snippet of the errors from the makefile.

olc_act.o: In function `medit_damdice':
/usr/local/actofwar/src/olc_act.c:4777: undefined reference to `__ctype_b'
olc_act.o: In function `medit_damdice':
/usr/include/stdlib.h:303: undefined reference to `__strtol_internal'
note.o: In function `load_thread':
/usr/local/actofwar/src/note.c:227: undefined reference to `_IO_getc'
/usr/local/actofwar/src/note.c:234: undefined reference to `__ctype_b'
db.o: In function `fread_string':
/usr/local/actofwar/src/db.c:2965: undefined reference to `_IO_getc'
/usr/local/actofwar/src/db.c:2967: undefined reference to `__ctype_b'
/usr/local/actofwar/src/db.c:2980: undefined reference to `_IO_getc'


I will post makefile in next post
#1
Here is makefile:
CC = gcc
PROF = -O -g
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = -lcrypt $(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 mob_cmds.o mob_prog.o olc.o olc_act.o olc_save.o bit.o \
mem.o string.o olc_mpcode.o mount.o quest.o hunt.o

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

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


I appreciate your help
Australia Forum Administrator #2
Are you using Cygwin? What is the first error message? Maybe there is an include file missing. These errors sound serious, sounds like you don't have the proper system include files or something like that.
#3
I was missing some include stuff that I saw in an earlier reply that u made to another post. it works now and I appreciate your time.