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 ➜ Problems with color.c

Problems with color.c

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


Posted by Viersehen   (3 posts)  Bio
Date Wed 13 Aug 2003 02:42 AM (UTC)
Message
I am implementing Samson's Color v3.0 and i am getting these messages while compiling.

color.c:1174: redefinition of `send_to_char_color'
color.c:1088: `send_to_char_color' previously defined here
color.c:1180: redefinition of `send_to_pager_color'
color.c:1127: `send_to_pager_color' previously defined here

I have looked the code over and nothing looks wrong...
Any suggestions?

Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 14 Aug 2003 08:09 AM (UTC)
Message
Search for those words - sounds like you have them in the file twice. The definition I mean, not references to them.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Viersehen   (3 posts)  Bio
Date Reply #2 on Thu 14 Aug 2003 03:01 PM (UTC)
Message
Thanks, Samson helped me fix it... This problem has been resolved
Top

Posted by Toy   (206 posts)  Bio
Date Reply #3 on Sun 12 Sep 2004 08:18 PM (UTC)
Message
I'm running into this trouble as well. There is no errors in the code that I can see. Does anyone know the solution to this??

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #4 on Mon 13 Sep 2004 03:32 AM (UTC)
Message
For the benefit of others, what turned out to be the problem?
Top

Posted by Toy   (206 posts)  Bio
Date Reply #5 on Mon 13 Sep 2004 04:16 PM (UTC)
Message
Well, the way it worked for me was this: I downloaded the swrip source code from http://swrip.betterbox.net/source.html, downloaded Samson's code for the color fix. I've used it before on SMAUG so I know it works fine. I followed the instructions, recompiled and got the error message:

gcc -c -g3 -Wall -DNOCRYPT -DREQUESTS color.c
color.c:1189: error: redefinition of `send_to_char_color'
color.c:1103: error: `send_to_char_color' previously defined here
color.c:1195: error: redefinition of `send_to_pager_color'
color.c:1142: error: `send_to_pager_color' previously defined here
make[1]: *** [color.o] Error 1
make[1]: Leaving directory `/home/KK and Li Li/releasev101rip/src'
make: *** [all] Error 2

I didn't change anything in color.c. Not really sure why it's showing a redefinition.

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Toy   (206 posts)  Bio
Date Reply #6 on Tue 14 Sep 2004 03:53 AM (UTC)
Message
Ok, I solved the problem it seems. I found these in mud.h at the bottom of the file:

//#define send_to_char send_to_char_color
//#define send_to_pager send_to_pager_color

I commented them out and everything compiled cleanly and seems to be working ok.

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
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.


19,164 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.