# define LEN
Struct aa {
Uint8_t len.
Uint8_t dat (LEN);
};
Struct bb {
Uint8_t head;
Struct aa d (LEN);
};
Compile-time error: error: # 1057: type containing an unknown - size array is not allowed
The data definition under the IAR C11 did the compiler allow, and in the keil C99 compilation is not the past
CodePudding user response:
# define LENYou define does not specify the length?
For example:
# define LEN 10