• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: <incomplete type> in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: General advice for compatibility testing
  • Next by Date: Re: Header Search Paths & Source Trees
  • Previous by thread: Re: where is c++filt (gcc4)
  • Next by thread: Re: <incomplete type> in debugger
  • Index(es):
    • Date
    • Thread