Re: Partial includes syntax
Re: Partial includes syntax
- Subject: Re: Partial includes syntax
- From: Andreas Grosam <email@hidden>
- Date: Sun, 4 Sep 2005 17:09:13 +0200
On 02.09.2005, at 15:13, Philippe Casgrain wrote:
Le 05-09-02 à 01:23, Andreas Grosam a écrit :
Well, XCode finds the headers, but the compiler doesn't.
I think, you have to specify the path to the xxx/Project/Document
folder in the Header Search Path build settings.
For instance, if your Project folder is located in ~/Develop/ you
may add (space seperated) the following path string in the Header
Search Path:
$(HOME)/Develop/Project/Document
For the record, I have just discovered that if you drag-and-drop a
folder from the Finder into Xcode's "Header Search Paths" window (the
one that comes up when you click "Edit" when the Header Search Paths
is highlighted) will create a folder name with the proper build
variable. For instance, when I drag my "Headers" folder, I get
"${SRCROOT}/Headers" as a Header Search Path. Nice!
As always, i wouldn't rely on a rarely used feature - which exact
function isn't even documented. In fact, in XCode 1.5, this method does
not work reasonable (not tested in XCode 2.1, yet). For instance, XCode
more or less chooses randomly which path variable will be used as a
prefix. It is sometimes SRCROOT, sometimes SYSTEM_CPP, or maybe a
defined source tree, or a source tree which had been defined once, but
has been deleted in the meantime, etc.
btw, SRCROOT points to PWD, or to the current working directory, if PWD
is empty or undefined (means to the location where the xcode project is
located). If you move the xcode project relative to your source root,
then the paths get broken, unless you specify PWD.
Andreas
Oh well, only 400 errors to go... But it's going down!
Philippe _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
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