humm another problem..

From: Tdz Computing (cobra911@mindless.com)
Date: 01/03/00


Hello all I am having another problem with a sniplet.
its called slist.txt
here it its:

-------------------------------------------------
void list_skills(struct char_data * ch)
{
  extern char *spells[];
  extern struct spell_info_type spell_info[];
  int i;

  if (!GET_PRACTICES(ch))
    strcpy(buf, "You have no practice sessions remaining.\r\n");
  else
    sprintf(buf, "You have %d practice session%s remaining.\r\n",
            GET_PRACTICES(ch), (GET_PRACTICES(ch) =3D=3D 1 ? "" : "s"));

  sprintf(buf, "%sYou know of the following skills:\r\n", buf);

  strcpy(buf2, buf);

  for (i =3D MAX_SPELLS ; i < MAX_SKILLS; i++) {
    if (strlen(buf2) >=3D MAX_STRING_LENGTH - 32) {
      strcat(buf2, "OVERFLOW in spec_procs.c\r\n");
      break;
    }
    if (GET_LEVEL(ch) >=3D spell_info[i].min_level[(int)GET_CLASS(ch)]) =
{
      sprintf(buf, "%-20s %s", spells[i], how_good(GET_SKILL(ch, i)));
      strcat(buf2, buf);
    }
  }
/* Add classes to exclude from the spell listing
here. */
  if ( ( (GET_CLASS(ch) !=3D CLASS_WARRIOR) && (GET_CLASS(ch)
!=3DCLASS_THIEF) )
      || (GET_LEVEL(ch) >=3D 51) ) {
  sprintf(buf, "\r\n\r\nAnd the following spells:\r\n");
  strcat(buf2, buf);

  for (i =3D 1; i < MAX_SPELLS; i++) {
    if (strlen(buf2) >=3D MAX_STRING_LENGTH - 32) {
      strcat(buf2, "*OVERFLOW in spec_procs.c\r\n");
      break;
    }
    if(GET_LEVEL(ch) >=3D spell_info[i].min_level[(int)GET_CLASS(ch)]) {
      sprintf(buf, "%-20s %s", spells[i],
      how_good(GET_SKILL(ch, i)));
      strcat(buf2, buf);
    }
 }
}
  page_string(ch->desc, buf2, 1);
}
---------------------------------------------------------
I keep getting this message.
/circle/src/spec_procs.c:150: undefined reference to `spells'
/circle/src/spec_procs.c:168: undefined reference to `spells'
make[1]: *** [../bin/circle] Error 1
make: *** [all] Error 2
BASH.EXE-2.01$

I have checked all refererces to spells and they seem  to all be there.
Any help on this would be nice, the compiler makes the .o but will not
make the exe.
Later

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



This archive was generated by hypermail 2b30 : 04/10/01 PDT