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 ➜ SMAUG ➜ SMAUG coding ➜ switching from 1.7 to 1.8

switching from 1.7 to 1.8

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


Posted by Orik   USA  (182 posts)  Bio
Date Sun 15 Jul 2007 03:18 AM (UTC)

Amended on Sun 15 Jul 2007 04:14 AM (UTC) by Orik

Message
I've been switching things from 1.7 to 1.8 because of all the new fun stuff. I've got all the files to compile but at the very end I get errors from the o files. Here's a sample:



o/act_comm.o: In function `_Z8scramblePKci':
/home/smaugfuss/sf18/src/act_comm.c:33: multiple definition of `_note_free'
o/imc.o:/home/smaugfuss/sf18/src/imc.c:139: first defined here
o/act_info.o: In function `_Z8look_skyP9char_data':
/home/smaugfuss/sf18/src/act_info.c:144: multiple definition of `_note_free'
o/imc.o:/home/smaugfuss/sf18/src/imc.c:139: first defined here
o/act_move.o: In function `_Z9grab_wordPcS_':
/home/smaugfuss/sf18/src/act_move.c:131: multiple definition of `_note_free'
o/imc.o:/home/smaugfuss/sf18/src/imc.c:139: first defined here
o/act_obj.o: In function `_Z7advatoiPc':
/home/smaugfuss/sf18/src/bet.h:60: multiple definition of `_note_free'
o/imc.o:/home/smaugfuss/sf18/src/imc.c:139: first defined here
o/act_wiz.o: In function `_Z12get_saveflagPc':
/home/smaugfuss/sf18/src/act_wiz.c:73: multiple definition of `_note_free'
o/imc.o:/home/smaugfuss/sf18/src/imc.c:139: first defined here
o/ban.o: In function `_Z12load_banlistv':
/home/smaugfuss/sf18/src/ban.c:45: multiple definition of `_note_free'
o/imc.o:/home/smaugfuss/sf18/src/imc.c:139: first defined here
o/boards.o: In function `_Z14delete_projectP12project_data':
/home/smaugfuss/sf18/src/boards.c:39: multiple definition of `_note_free'
o/imc.o:/home/smaugfuss/sf18/src/imc.c:139: first defined here


It goes through every file and says multiple definition at the first of every function. note_free is defined in mud.h and only once throughout the whole code. I'm not sure what I've done wrong.

I've done make clean everytime I've tried to fix it and I have no idea why it keeps doing that.

Here's mud.h

/* board.c */
NOTE_DATA *note_free;
void free_global_note args ( ( NOTE_DATA *note) );

/* boards.c */
void load_boards args ( ( void ) );
BD *get_board args ( ( OBJ_DATA *obj ) );


Everything compiles fine until it reaches the very end.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sun 15 Jul 2007 04:28 AM (UTC)
Message
What's imc.c, line 139?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Orik   USA  (182 posts)  Bio
Date Reply #2 on Sun 15 Jul 2007 04:31 AM (UTC)
Message
It's the very first function, but I've been looking up the problem and I think I might have found it.

Changed in mud.h

NOTE_DATA *note_free;

to extern NOTE_DATA *note_free;

and then in board.c put
NOTE_DATA *note_free;

That works right there.
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #3 on Tue 17 Jul 2007 02:24 PM (UTC)
Message
Where did you find that *note_free declaration? mud.h does not have that in a stock distro of SmaugFUSS 1.8.
Top

Posted by Orik   USA  (182 posts)  Bio
Date Reply #4 on Tue 17 Jul 2007 10:47 PM (UTC)
Message
It was with the global board snippet.
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.


21,894 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.