Home > Back-end >  Keil c99 supports
Keil c99 supports

Time:10-04

Procedures are defined as follows


# 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 LEN
You define does not specify the length?

For example:
# define LEN 10
  • Related