Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Yandex, Bing

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » COLOR SNIPPET
Forum Rules | Mark all | Recent Posts

COLOR SNIPPET
< Newer Topic :: Older Topic > Problem with send_to_char_color

Pages:<< prev 1 next >>
Post is unread #1 Sep 12, 2004, 1:10 pm
Go to the top of the page
Go to the bottom of the page

KMMancine

GroupMembers
Posts3
JoinedSep 12, 2004

I need some help. I get this error message:

$ make
make swrip
make[1]: Entering directory `/home/KK and Li Li/releasev101rip/src'
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

The code all looks right. Can someone steer me in the right direction?

KMMANCINE
       
Post is unread #2 Sep 12, 2004, 1:12 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Can you show us what exists in the lines immediately surrounding 1189, 1103, 1195, and 1142?

Without seeing that, I'm guessing the functions have declarations in color.c that shouldn't be there. Or perhaps there is a parse error above line 1103. Out of place brackets or parentheses, etc.

Also would help to know where the color snippet was obtained, since I'm fairly sure the copy available here works fine.
       
Post is unread #3 Sep 13, 2004, 11:28 am
Go to the top of the page
Go to the bottom of the page

KMMancine

GroupMembers
Posts3
JoinedSep 12, 2004

I got the color snippet from your site.

The errors are sorta odd.

In:
void send_to char
void send_to_pager
void send_to_pager_color
void send_to_char_color

The errors call to the lines in which the first open brackets are on. For example, the error on line 1189 is this line:

void send_to_char( const char *txt, CHAR_DATA *ch )
{ <------ error line
send_to_char_color( txt, ch );
return;
}

It's like that for each call. Any clues?

-KMMancine
       
Post is unread #4 Sep 13, 2004, 8:52 pm
Go to the top of the page
Go to the bottom of the page

KMMancine

GroupMembers
Posts3
JoinedSep 12, 2004

Ok, I solved the issue. In mud.h at the very bottom of the file I found these:

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

I commented them out and everything seems to be working fine now.

-KMMancine
       
Pages:<< prev 1 next >>