Re: Relative paths
Re: Relative paths
- Subject: Re: Relative paths
- From: Mark Lentczner <email@hidden>
- Date: Thu, 19 Feb 2004 14:38:12 -0800
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 think the source code is in error:
The locations to be searched by <...> and "..." are different, though
implementation defined. The standard only requires that locations
searched for "..." always include the <...> locations. Traditionally,
<...> searches standard system include directories, while "..." looks
in the source directory first.
Many compilers have switches (perhaps on by default) that treat <...>
and "..." exactly the same.
Since your include file is explicitly relative to the source directory
of the source file, the "..." is certainly always correct.
- Mark
Mark Lentczner
email@hidden
http://www.wheatfarm.org/
_______________________________________________
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.