Incomplete Bitvector type

Posted by Cyron on Mon 18 Aug 2003 01:58 AM — 5 posts, 17,127 views.

#0
Uh. For some reason, every time I attempt to compile, I get:

field 'bitvector' has incomplete type

when.. its got all 32 values. This may be obvious, but I just cant seem to find the problem. Anyone had this problem before?

Oh... Im using Cygwin, if that matters.
Amended on Mon 18 Aug 2003 08:41 PM by Cyron
Australia Forum Administrator #1
Can you paste the exact error message, and the batch of lines around the offending line number so we can see what it is complaining about?
#2
mud.h:189: field 'bitvector' has incomplete type
mud.h:190: confused by earlier errors, bailing out
make[1]: *** [build.o] Error 1

struct affect_data
{
AFFECT_DATA * next;
AFFECT_DATA * prev;
sh_int type;
sh_int duration;
sh_int location;
int modifier;
EXT_BV bitvector; [Line 189]
};
Australia Forum Administrator #3
Your error message seems to be at line 189, whereas in my mud.h EXT_BV (extended_bitvector) is defined at line 344. Thus you are using it before it has been properly defined.

In my file affect_data is at line 1295, have you moved things around?
#4
Wow, yea. I didnt realize I had moved the function without its definitions. I had done it once or twice more.. ah well, comes with reorganizing code. Thanks for your help!

Now I can get down to work with the other.. 1500... errors of mine, heh =)