Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 663 Bytes

compiler-error-c2133.md

File metadata and controls

33 lines (27 loc) · 663 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2133
Compiler Error C2133
11/04/2016
C2133
C2133
8942f9e8-9818-468f-97db-09dbd124fcae

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
};