Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ conflicting types / previous declaration

conflicting types / previous declaration

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by MoVice   USA  (1 post)  Bio
Date Sun 06 Nov 2011 04:03 PM (UTC)

Amended on Sun 06 Nov 2011 04:47 PM (UTC) by MoVice

Message
[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:

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           );
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,024 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.