• 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
Re: Odd relative paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd relative paths


  • Subject: Re: Odd relative paths
  • From: Sailesh Agrawal <email@hidden>
  • Date: Mon, 25 Jul 2005 02:08:39 -0700

Michael Hecht wrote:

I have several files in my project that I want to have a relative path of this form:

    ../A/foo.cpp

Most of the files that I want to access in this way are fine. However, there are a few that, when they are compiled, show me a build message with a path like this:

    ../A/../A/foo.cpp

or even this:

    ../A/../B/../A/foo.cpp

I know it's harmless, but it might cause problems if I relocate my project to another machine (for example, if B didn't exist on the other machine). Within Xcode, I've examined the files in question and they all seem to think that the path is already exactly what I want it to be. But something is obviously not quite right. How do I correct this?

I'm not sure why you're getting the error (a symlink maybe?) but here's a possible fix. Select the file you want to fix and hit command I. In the General tab change the path by clicking choose. Make sure "Relative to Project" is selected.


I think this should reset the path to the "correct" version and you won't have to edit the project file by hand :-P

Sailesh
_______________________________________________
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


References: 
 >Odd relative paths (From: Michael Hecht <email@hidden>)

  • Prev by Date: RE: Cannot load old XCode projects into XCode 2.0 on Tiger
  • Next by Date: Building using gcc-3.3 in a Universal Binary setup
  • Previous by thread: Odd relative paths
  • Next by thread: Newbie problem with c++ files in XCode
  • Index(es):
    • Date
    • Thread