Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C2133

Error Message

'identifier' : unknown size

An unsized array is declared as a member of a class, structure, union, or enumeration. The /Za (ANSI C) option does not allow unsized member arrays.

The following sample generates C2133:

// C2133.cpp
// compile with: /Za
struct X {
   int a[0];   // C2133 unsized array
};

Possible resolution:

// C2133b.cpp
// compile with: /c
struct X {
   int a[0];   // no /Za
};

Community Additions

ADD
Show:
© 2015 Microsoft