Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, DotBot

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
632
ClarenceKe
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,644
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 >>