Re: [NEWBIE] Clan coding

From: Rafiq Premji (jurniman@BETTERBOX.NET)
Date: 04/25/98


> Hello all,
>
> Ok this is probably a stupid question but i hand patched in the clan
> patch from the circle ftp site.
>
> When i compiled it i got this error
>
> interpreter.c: In function `nanny':
> interpreter.c:1302: duplicate case value
> interpreter.c:1297: this is the first entry for that value
>
> Here are the lines its complaing about
>
> --snip--
>   case CON_CLAN_EDIT:
>     parse_clan_edit(d, arg);
>      break;
>
>   /*. OLC states .*/
>   case CON_OEDIT:
>     oedit_parse(d, arg);
>     break;
> --snip--
>
> Now i searched it out and didnt find any dup case statements.
> Any help would be nice, just a gentle (or hard) shove in the right
> direction would be nice and hopefuly not a RTFM!! cuz i have (=
>
> Thanx in advance
>
> -=DemiGod=-
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+
>

This is probably because you installed OLC first, then clans.  OLC defined
CON_OEDIT in the structs.h file, and clans defined CON_CLAN_EDIT in a
clan.h (or similar) file.  They probably are trying to use the same
number.  To fix this, just change the number that CON_CLAN_EDIT was
defined to, to a free number in it's header file.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST