Please check out Jesus Died for us All !

Member Discussions

terms



[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]


1. smash_colour Sun Sep 17, 2006 [3:09 PM]
yzor
Email not supplied
member since: Jul 5, 2006
Reply
i'm getting this error message at the end of my compile

/home/Owner/mystara/quickmud/src/gquest.c:669: undefined reference to `_smash_colour'
collect2: ld returned 1 exit status
make: *** [rom] Error 1


this is the part of code that it refers to. any ideas how to fix this?

for (i = 0; i < gquest_info.mob_count; i++)
{
if ((mob = get_mob_index(gquest_info.mobs[i])) != NULL)
{
sprintf(buf, "%2d) [%-20s] %-30s (level %3d)\n\r", i + 1, mob->area->name, smash_colour(mob->short_descr), mob->level);
send_to_char(buf, ch);
}
}
return;


2. RE: smash_colour Sun Sep 17, 2006 [7:00 PM]
Tyche
Email not supplied
member since: Apr 4, 2000
In Reply To
Reply
A couple of options.

1) Make sure you are linking the module that contains smash_colour() to your mud.
2) Make sure smash_colour() is spelled correctly.
3) Write a function named smash_colour().
The Sourcery - http://sourcery.dyndns.org
TeensyMud - http://teensymud.kicks-ass.org
"A man can receive nothing, except it be given him from heaven."




[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]