Relative paths
Relative paths
- Subject: Relative paths
- From: Patrick Coskren <email@hidden>
- Date: Thu, 19 Feb 2004 12:01:56 -0500
Hi,
I feel like this is a newbie problem, but I just can't get it to work.
A scan through the archives suggests others have had related problems,
but I couldn't find anything on this specifically.
I have a program I'm trying to port from X11. In one directory, I
have the original source tree, which I want to leave intact. I've
defined it as a source tree called "Neuron home" in XCode. In another
directory, I have my XCode project, which contains references to the
source files. One of the source files contains the line
#include <../../nrnconf.h>
... and it fails to build because XCode can't find nrnconf.h, which is
present two directories up from the source file. If I change the line
to #include "../../nrnconf.h", (quotes instead of brackets) it works.
I'd rather not do this just to satisfy this one compiler, though,
because I'm not the primary maintainer of the code, and I'm likely to
encounter resistance from him if I've touched every single file in the
distribution (this header file is pretty pervasive).
So what I'd like to do is have the system header path find the file,
but so far I'm coming up blank.
Here's what I've tried:
* Making sure nrnconf.h is part of the project (it is).
* Making sure the directory containing nrnconf.h is on the header
search path
* Making sure the directory containing the *source file* is on the
header search path (so the header would be at
<searchpath>/../../nrnconf.h)
* Trying the search path ending with a slash, or ending without a slash
* Renaming nrnconf.h's XCode entry as "../../nrnconf.h"
* Taking nrnconf.h out of the Xcode target (but leaving it in the
project)
* Setting nrnconf.h's path to be "Neuron home" relative or absolute...
neither worked.
Is there any way I can get XCode to find this file using #include<>
notation? Does searching the system header path just not permit
relative paths that go up the file hierarchy? Or should I just give up
and break out the Perl /</"/ filter?
Thanks in advance,
-Patrick
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.