#23122 - Darmstadium - Mon Jul 05, 2004 3:00 am
Yo, I'm using G++. Does anybody know what this error means?:
field `enemies' has incomplete type
enemies is the name of a ptr, i don't want to get too specific.
Thanks for your help.
#23126 - tepples - Mon Jul 05, 2004 4:06 am
Have you tried changing enemies[] to *enemies ?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#23142 - Darmstadium - Mon Jul 05, 2004 5:28 pm
so you mean if I were doing
enemies[0] = 7;
i should do
*enemies = 7;
??
Well, the error is on the line where I declare my array like this:
static const int enemies_len = 128;
enemy enemies[enemies_len];
what do you think?
thanks
#23143 - Darmstadium - Mon Jul 05, 2004 6:01 pm
nevermind, I figured it out...