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

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

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:

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