Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ Incomplete Bitvector type
|
Incomplete Bitvector type
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Cyron
(4 posts) Bio
|
| Date
| Mon 18 Aug 2003 01:58 AM (UTC) Amended on Mon 18 Aug 2003 08:41 PM (UTC) by Cyron
|
| Message
| 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 18 Aug 2003 06:45 AM (UTC) |
| Message
| | 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? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Cyron
(4 posts) Bio
|
| Date
| Reply #2 on Mon 18 Aug 2003 08:51 PM (UTC) |
| Message
| 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]
}; | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Tue 19 Aug 2003 07:23 AM (UTC) |
| Message
| 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? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Cyron
(4 posts) Bio
|
| Date
| Reply #4 on Tue 19 Aug 2003 08:32 PM (UTC) |
| Message
| 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 =)
| | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,189 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top