Re: <incomplete type> in debugger
Re: <incomplete type> in debugger
- Subject: Re: <incomplete type> in debugger
- From: Markian Hlynka <email@hidden>
- Date: Mon, 2 May 2005 13:47:11 -0600
It's my experience that I get <incomplete type> when I'm coding in
C/C++, and I have a multidimensional array declared globally and
static. That is, foo.c contains:
----------------
<headers and preprocessor stuff>
int myarray[x][y];
int main(){....}
----------------------
where this is NOT inside of any function (including main). The problem
here is that when you ask gdb to show you myarray[a][b], gdb assumes
that myarray is an int**. In C and C++, a static array as declared
above is NOT an int**, but only an int*. This is extremely irritating.
Anyway, I presume everyone knows this already, but if they don't, you
can email me and I'll explain further. I don't have my student ADC copy
of Tiger yet. :-(
Markian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden