• 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: Xcode chockes on variable-sized arrays in struct definitions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Xcode chockes on variable-sized arrays in struct definitions


  • Subject: RE: Xcode chockes on variable-sized arrays in struct definitions
  • From: "Syd Polk" <email@hidden>
  • Date: Tue, 23 Jan 2007 14:31:07 -0600


> -----Original Message-----
> struct DataDefinition
> {
>     DATATYPES DataType;
>     DWORD RevLevel;
>     DWORD FieldCount;
>     FieldDefinition Field[]; // <-------------------- This
> seems to be
> the problem structure
> };
>

Standard C does not allow this syntax; you must put in a size there:

FieldDefinition Field[1];

would fix your problem. Visual C++, MPW and CodeWarrior all had this
extension in their compilers; gcc (and therefore Xcode) does not.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Xcode chockes on variable-sized arrays in struct definitions
      • From: Mike <email@hidden>
    • Re: Xcode chockes on variable-sized arrays in struct definitions
      • From: Mike <email@hidden>
    • Re: Xcode chockes on variable-sized arrays in struct definitions
      • From: Scott Ribe <email@hidden>
References: 
 >Xcode chockes on variable-sized arrays in struct definitions (From: Mike <email@hidden>)

  • Prev by Date: Re: Xcode chockes on variable-sized arrays in struct definitions
  • Next by Date: Re: Xcode chockes on variable-sized arrays in struct definitions
  • Previous by thread: [SOLVED] Xcode chockes on variable-sized arrays in struct definitions
  • Next by thread: Re: Xcode chockes on variable-sized arrays in struct definitions
  • Index(es):
    • Date
    • Thread