[Newbie Coder] One last annoying error before debugging....

From: Walter Goodwin (jgoodwin@expert.cc.purdue.edu)
Date: 07/10/96

Okay.  Background stuff:   I'm currently working with cirlce 3.0 pl11
Its pretty much stock code with very little modification.  I'm trying
to recode guildmaster's so that they can only teach certain skills.
Hopefully they will be loaded from files like the v3.0 shopkeepers.

anyways, here is the last error that I can't figure out:

make ../bin/circle
make[1]: Entering directory `/home/master/stuff/circleb/src'
gcc -c -g -O -Wall -fno-strict-prototypes  guild.c
guild.c:21: two or more data types in declaration of `mob_index'
make[1]: *** [guild.o] Error 1
make[1]: Leaving directory `/home/master/stuff/circleb/src'
make: *** [default] Error 2
I have a fealing it has something to do with the makefile or missing header
file or something else real sneaky.  

external struct index_data *mobindex;    is the line its referring to,
unfortunately it isn't that line causing the error (I know because I've
put the function prototypes and even int not_in_use in its spot and
they get the error instead.   Basically, whatever is the first decleration
after the #include "whatever.h" gets the error. Its driving me batty.
I cleared about 12 pages of errors out of the file only to have this happen.

In my Makefile, here are the refernces to object.o:

OBJFILES = comm.o act.comm.o act.informative.o act.movement.o act.item.o \
	act.offensive.o act.other.o act.social.o act.wizard.o ban.o boards.o \
	castle.o class.o config.o constants.o db.o fight.o graph.o guild.o \
	handler.o house.o interpreter.o limits.o magic.o mail.o mobact.o \
	modify.o objsave.o olc.o shop.o spec_assign.o spec_procs.o\
	spell_parser.o spells.o utils.o weather.o 

And in the dependencies list:

guild.o: guild.c conf.h sysdep.h structs.h comm.h handler.h db.h interpreter.h\
  utils.h spells.h guild.h
	$(CC) -c $(CFLAGS) guild.c

I've checked the dependencies list and all the .h files are listed (even in
the same order.)

Well, if anyone can help me I'd greatly appreciate it.  If you'd like me to
send you a copy of the guild.c and guild.h files mail me.  After I get the
debugging done I'm hoping to put it on a ftp site or two :)

Jason Goodwin

This archive was generated by hypermail 2b30 : 12/07/00 PST