We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I try compile this code (.c) with --c99 option struct sx { char c; char a[]; }; static struct sx xx = { 1, {[5] = 0} }; and have error error: #146: too many initializer values
How to initialize array inside struct ?
ARM C/C++ Compiler, 4.1 [Build 791] [Standard]
Thanks
yup, porting becomes a lot harder when you deviate from standards.
I'm sure the pointer solution will work with gcc as well.
Yes - :) i already make contional compling. Thanks again Marc
P.S. i use armcc as final for own binaries (smallest code genaration). And gcc compatibility for other people (as opensource).