I have the latest version of cygwin and rom source. I unpack it into a directory, then fire up a command prompt and do a make with mt fingers and eyes crossed.....
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND act_comm.c
.
.
.
.
.
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND special.c
special.c: In function `spec_string':
special.c:1037: subscripted value is neither array nor pointer
make: *** [special.o] Error 1
ouch. I am a VB programmer who is learning C and this error makes no sense. Its a new function for OLC and it looks like a pointer but I dont see an error. Here is my makefile if it helps.
CC = gcc
PROF = -O -g
NOCRYPT = -DNOCRYPT
C_FLAGS = -Wall $(PROF) $(NOCRYPT) -DOLD_RAND
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 NewMagic.o act_newc.o remort.o bank.o
rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES) $(LIBS)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
Thanks alot. You rock
-Bannon
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND act_comm.c
.
.
.
.
.
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND special.c
special.c: In function `spec_string':
special.c:1037: subscripted value is neither array nor pointer
make: *** [special.o] Error 1
ouch. I am a VB programmer who is learning C and this error makes no sense. Its a new function for OLC and it looks like a pointer but I dont see an error. Here is my makefile if it helps.
CC = gcc
PROF = -O -g
NOCRYPT = -DNOCRYPT
C_FLAGS = -Wall $(PROF) $(NOCRYPT) -DOLD_RAND
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 NewMagic.o act_newc.o remort.o bank.o
rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES) $(LIBS)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
Thanks alot. You rock
-Bannon