Re: coverting windows code

From: Dana and Todd Luther (luthers@ex-pressnet.com)
Date: 12/12/00


> make ../bin/circle
> make[1]: Entering directory `/home/muddy/circle/src'
> gcc -c -g -O2 -Wall  act.comm.c
> act.comm.c: In function `do_ctell':
> act.comm.c:251: structure has no member named `clan'

>8----snip----->8

> #define GET_CLAN(ch)    ((ch)->char_specials.saved.clan)
> this line is in there
> any ideas?
>

Yes, you have it defined in your macro, but did you actually add a  clan
variable to the char_special__data_saved struct?

in structs.h you should have something like this...

struct char_special_data_saved {
   int alignment;  /* +-1000 for alignments                */
   long idnum;   /* player's idnum; -1 for mobiles */
   long /*bitvector_t*/ act; /* act flag for NPC's; player flag for PC's */
   long /*bitvector_t*/ affected_by; /* Bitvector for spells/skills affected
by */

   sh_int apply_saving_throw[5]; /* Saving throw (Bonuses)  */
};

to which you need to add whatever appropriate reference to clan you need
(ie., int clan, or long clan, whatever it is)

Dana

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



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