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

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.

  • Follow-Ups:
    • Re: Relative paths
      • From: Patrick Coskren <email@hidden>
References: 
 >Relative paths (From: Patrick Coskren <email@hidden>)

  • Prev by Date: Creating gprof .order Files
  • Next by Date: Re: Relative paths
  • Previous by thread: Relative paths
  • Next by thread: Re: Relative paths
  • Index(es):
    • Date
    • Thread