Compiler Error C2133
'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
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for