[I posted this a couple of days ago on pilot.programmer.gcc with no response,
maybe someone here can help me.]
I have a struct declared like...
struct X {
Int16 a[27];
Char *b;
};
Then I try to declare an instance of it with an initializer...
struct X thestruct = {{1},""};
This results in thestruct getting filled with garbage. I've tried with
different members in X, the pattern seems to be that sizeof(struct X) can't
be >=58. If I for instance decrease the number of elements in X.a to 26 it
will work. Is this a bug in PRC-Tools or is my declaration illegal? I use
prc-tools 2.0. BTW i'm compiling with -O2 (I first thought it might be the
"Const objects + no optimization => crash" bug).
Any help appreciated!
Regards,
Kristian Adrup
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/