• 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: Two Header file search path questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two Header file search path questions


  • Subject: Re: Two Header file search path questions
  • From: Scott Tooker <email@hidden>
  • Date: Wed, 7 Sep 2005 17:34:07 -0700


On Sep 7, 2005, at 2:40 PM, Ando Sonenblick wrote:

1. Why is it that even after adding (by dragging foo.h into my project) that some other .cpp file that #includes "foo.h" can't find it and I need to add the folder that contains foo.h to the header search paths?

It seems that if its in the project (and opens when doubleclicked in the project) that Xcode should be able to find it!


2. Then, why is that when I do drag a folder into the header Search paths that Xcode still cant find foo.h until I manually edit the path of the folder from "$(SRCROOT)/../FooFolder" to just "../ FooFolder"?

By default any relative paths in HEADER_SEARCH_PATHS are treated as relative to SRCROOT, so your change should have been meaningless. Weird.



Is SRCROOT something I need to set up or what?

SRCROOT points to the project directory by default and should not be changed.


What version of Xcode are you using? Do you have a small test project that shows this problem?

Scott


thx, ando

_______________________________________________
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

_______________________________________________ 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: 
 >Two Header file search path questions (From: Ando Sonenblick <email@hidden>)

  • Prev by Date: Re: build settings and source paths
  • Next by Date: Re: Scrolling in Xcode 2.1
  • Previous by thread: Two Header file search path questions
  • Next by thread: XCode Rules!
  • Index(es):
    • Date
    • Thread