[Circle] [Races] [Newbie] Compile Error

From: Chris Grantham (casper@optima.mme.wsu.edu)
Date: 11/15/96


When trying to compile a pretty bare mud except for OasisOLC and a recently
to the letter added races system (From races.doc) I get this:

make ../bin/circle
make[1]: Entering directory `/home/circle/circle30bpl11/src'
gcc -c -g -O -Wall -fno-strict-prototypes  interpreter.c
interpreter.c: In function `nanny':
interpreter.c:1535: duplicate case value
interpreter.c:1273: this is the first entry for that value
interpreter.c:1541: warning: implicit declaration of function `GETPFILEPOS'
interpreter.c:1542: parse error before `;'
make[1]: *** [interpreter.o] Error 1
make[1]: Leaving directory `/home/circle/circle30bpl11/src'
make: *** [default] Error 2 

Here are lines 1530-1550:

    SEND_TO_Q(race_menu, d);
    SEND_TO_Q("\r\nRace: ", d);
    STATE(d) = CON_QRACE;
    break;

  case CON_QRACE:
    if ((GET_RACE(d->character) = parse_race(*arg)) == CLASS_UNDEFINED) {
      SEND_TO_Q("\r\nThat's not a race.\r\nRace: ", d);
      return;
    }

    if (GETPFILEPOS(d->character) < 0 )
      GETPFILEPOS(d->character) = create_entry(GET_NAME(d->character));
    init_char(d->character);
    save_char(d->character, NOWHERE);
    SEND_TO_Q(motd, d);
    SEND_TO_Q("\r\n\n*** PRESS RETURN: ", d);
    STATE(d) = CON_RMOTD;
    sprintf(buf, "%s [%s] new player.", GET_NAME(d->character), d->host);
    mudlog(buf, NRM, LVL_IMMORT, TRUE);  

Chris Grantham
Head Administrator
ObjectMURPE (tm)

ObjectMURPE, MURPE, OM, and OMURPE are 
trademarks of the ObjectMURPE Development Group.

--
Unsolicited commercial email will be proofread and sent back to its
source, along with a bill for $150 U.S. The act of mailing such messages
to this account indicates acceptance of these terms. 

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



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