• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
static *char myStringArray[] init problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: static *char myStringArray[] init problem?
      • From: Mark Bessey <email@hidden>
    • Re: static *char myStringArray[] init problem?
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: BugReport: Build after changing build config compiles old code
  • Next by Date: Re: static *char myStringArray[] init problem?
  • Previous by thread: Re: BugReport: Build after changing build config compiles old code
  • Next by thread: Re: static *char myStringArray[] init problem?
  • Index(es):
    • Date
    • Thread