Error C2233 - Arrays of objects containing zero-sized arrays are illegal.
- From: "David F." <df2705@xxxxxxxxxxxxxxxx>
- Date: Thu, 27 Sep 2007 18:43:07 -0700
I can compile the following (and it works as intended) with OpenWatcom, but
VC++ 2005 won't compile (error C2233).
// Using C99 Flexible Arrays
typedef struct _sTestList
{
UINT ID;
const TCHAR Text[];
} sTestList, *psTestList;
// test list of items
sTestList TestList[]={
1, _T("Test 1"),
2, _T("Test Item 2"),
3, _T("Test 3"),
4, _T("Test 4"),
5, _T("Test 5"),
6, _T("Test6"),
7, _T("Test 7"),
8, _T("Test 8"),
9, _T("Test 9"),
10, _T("") };
.
- Follow-Ups:
- RE: Error C2233 - Arrays of objects containing zero-sized arrays are illegal.
- From: "Jeffrey Tan[MSFT]"
- Re: Error C2233 - Arrays of objects containing zero-sized arrays are illegal.
- From: Doug Harrison [MVP]
- RE: Error C2233 - Arrays of objects containing zero-sized arrays are illegal.
- Prev by Date: Nothing is ever “ non-deterministic ”.
- Next by Date: Re: Error C2233 - Arrays of objects containing zero-sized arrays are illegal.
- Previous by thread: Finding the size of a dynamic block of memory, only given the pointer
- Next by thread: Re: Error C2233 - Arrays of objects containing zero-sized arrays are illegal.
- Index(es):
Relevant Pages
|