This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Issues with VLA and Keil

Hi guys, for some reason even though I selected C99 mode in my target configuration, Keil insist on giving me "error: #70: incomplete type is not allowed". Since incomplete types are defined in C99, I would have guessed selecting it would prevent this error. Anybody know how to solve this issue, or is it just not allowed in Keil.

My struct looks something like this:
typedef struct foo_s
{ uint8_t arr[];
} foo_t;

Parents
  • ... I would have guessed selecting it would prevent this error

    You logic is flawed: that's like saying, "my car's speedometer goes up to 110, therefore I can drive it at 110"

    As Robert noted they are defined - but they are only permitted in certain places.

Reply
  • ... I would have guessed selecting it would prevent this error

    You logic is flawed: that's like saying, "my car's speedometer goes up to 110, therefore I can drive it at 110"

    As Robert noted they are defined - but they are only permitted in certain places.

Children
No data