RAD Studio |  |

E2452: Size of the type is unknown or zero (C++)

This error message indicates that an array of unspecified dimension nested within another structure is initialized and the -A (ANSI) switch is on. For example:

Copy Code

    struct
    {
    char a[]; //Size of 'a' is unknown or zero
    }
    b = { "hello" }; //Size of the type is
    //unknown or zero

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!