• 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
XCode 2.1 header paths, source trees, and quotes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode 2.1 header paths, source trees, and quotes


  • Subject: XCode 2.1 header paths, source trees, and quotes
  • From: Scott Lahteine <email@hidden>
  • Date: Tue, 7 Jun 2005 01:27:36 -0700

Hi,

I have a number of header search paths in my project that worked up until Xcode 2.0 but seem to have been broken by Xcode 2.1. They refer to source trees by name, and since the directories referred to by the source tree references have spaces in them I've included quotes in the header paths. So in order to work they need to look *exactly* like this in the Header Search Paths setting:

    "$(SpriteWorld)/BlitPixie/Headers"

Without the quotes all versions of Xcode put this sort of thing in the compiler command-line in place of a single -I path:

-I/Users/ubergeek/Projects/DEVELOPER/_API_SDK/SpriteWorld -I3/ SpriteWorld -IFiles/BlitPixie/Headers


Problem #1:
When the paths are specified as above in the Target properties then the build succeeds. However they are completely ignored when I include them in the Project properties.


Problem #2:
I tried editing the search paths using the "Edit" button in the Build properties window and including the quotes in each field. But when I do that the quotes are \"escaped\" when placed into the build properties and also subsequently in the gcc compile command. This causes the quotes to be taken literally and it breaks the compile.


Problem #3:
Even though I've entered the search paths by typing them exactly as I've shown above, when I close the project and reopen it the quotes in my search paths are automatically removed by Xcode 2.1. No prior version of Xcode did this.


I thought perhaps the use of quotes was no longer a supported method of protecting spaces in pathnames, so I tried escaping the spaces in the paths of the global Source Trees. However Xcode escapes the backslashes in the Source Tree path when handing it to gcc and then the compile breaks even more creatively:

For the -I parts gcc gets this passed to it, and the quote placement seems wrong to me:

"-I/Users/ubergeek/Projects/DEVELOPER/_API_SDK/SpriteWorld 3/ SpriteWorld Files/BlitPixie/Headers"

And for the -c parts (yep, I have file groups in my project that are source-tree relative too) gcc gets this:

-c "/Users/ubergeek/Projects/DEVELOPER/_API_SDK/SpriteWorld\\ 3/ SpriteWorld\\ Files/Sources/Sprite.c"


Am I missing something, or does this represent a bug in Xcode 2.1?


-- Scott Lahteine Thinkyhead Software

_______________________________________________
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: XCode 2.1 header paths, source trees, and quotes
      • From: Scott Tooker <email@hidden>
  • Prev by Date: Re: Enabling Intel compilation?
  • Next by Date: Re: gcc 3.3 and universal format ?
  • Previous by thread: Re: [ADMIN] Time to get specific about version numbers
  • Next by thread: Re: XCode 2.1 header paths, source trees, and quotes
  • Index(es):
    • Date
    • Thread