A
andy
Hello
I am compiling some C code and I have an issue
If I declare
static const short a[2] = (-1, 3)
int main(.....)
short b;
b= a[0] I get -1
b= a[1] I get 3
If I declare w/o const
static short a[2] = (-1, 3)
It does not work any longer ...
Sound like the ARM libraries are not initializing these data (which compiles OK)
ANy idea?
Thanks
I am compiling some C code and I have an issue
If I declare
static const short a[2] = (-1, 3)
int main(.....)
short b;
b= a[0] I get -1
b= a[1] I get 3
If I declare w/o const
static short a[2] = (-1, 3)
It does not work any longer ...
Sound like the ARM libraries are not initializing these data (which compiles OK)
ANy idea?
Thanks