Re: humm another problem..

From: Ray Campbell (deadeye00@home.com)
Date: 01/03/00


Peter Ajamian wrote:
>
> > Tdz Computing wrote:
>
> <snip>
>
> > 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.
>
> This means that spec_procs.c has an extern reference to a variable that
> is not decalred in another file in this case the variable is spells,
> which from the code you posted looks like it's a list of spell names.
> Lists like these are normally (but not always) found in constants.c.  It
> may be in there under a different name (in which case you will need to
> change the name in your added code), or it may not be there at all (in
> which case you'll have to add it).
>
> Regards, Peter
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+

I had this problem as well, and it seems that they changed spells[]
after patch level 12.  To make this work use this instead of the extern
struct spells[]:

extern struct spell_info_type spell_info[];
--
and replace all instances of skill[] with:

spell_info[skill].name

This should help you out.


     +------------------------------------------------------------+
     | 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