static *char myStringArray[] init problem?
static *char myStringArray[] init problem?
- Subject: static *char myStringArray[] init problem?
- From: lbland <email@hidden>
- Date: Tue, 20 Sep 2005 08:43:51 -0400
hi-
I'm using xCode 2.1 and have a statement like this:
static *char myStringArray[] = {"a", "b", "c", (char *)0};
when I use gdb and look at the addresses of the elements of the array
they are something like 0x1 to 0xa (invalid memory). Same when I print
them out (not using gdb). It seems like the file scope constant
sections are not assigned properly (maybe not realigned right). Strange
that other similar lines in other .o files in the executable execute
right, it is just one .o file that is causing problems.
Has anyone seen this issue in xCode 2.1 (on PPC).
thanks!-
-lance
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden