#include<stdio.h>
int main()
{
int x = 5;
int length = 5+x;
int arrayw[length];
return 0;
}
This code builds fine in gcc and Keil but not in IAR.
I get this error :
Error[Pe028]: expression must have a constant value
How can it be made to compile fine in IAR toolchain