[EDIT] Problem solved! I just deleted line 99 in magic.h and got a clean compile. I feel kind of silly now.
Good afternoon,
I've spent some time searching the forums for an answer but have yet to find a solution to this error. I think the error is because the compiler found the spell_imprint declaration somewhere else, but I can't find any duplicate declarations. Any thoughts? Thanks for any help.
Running ROM 2.4b6 via QuickMUD. I've had this running for a while and made many changes. I ran a clean compile (rm *.o) to fish out any random/small errors and I'm stuck here.
System Info:
Linux 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i386 GNU/Linux
GCC Info:
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Here's the make error:
magic.c:
magic.h:
Good afternoon,
I've spent some time searching the forums for an answer but have yet to find a solution to this error. I think the error is because the compiler found the spell_imprint declaration somewhere else, but I can't find any duplicate declarations. Any thoughts? Thanks for any help.
Running ROM 2.4b6 via QuickMUD. I've had this running for a while and made many changes. I ran a clean compile (rm *.o) to fish out any random/small errors and I'm stuck here.
System Info:
Linux 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i386 GNU/Linux
GCC Info:
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Here's the make error:
gcc -Wall -O -ggdb -DNOCRYPT -DQMFIXES -c -o obj/magic.o magic.c
magic.c:4904: error: conflicting types for âspell_imprintâ
magic.h:99: error: previous declaration of âspell_imprintâ was here
make: *** [obj/magic.o] Error 1
magic.c:
4903 void spell_imprint( int sn, int level, CHAR_DATA *ch, void *vo )
4904 {
magic.h:
99 DECLARE_SPELL_FUN( spell_imprint );