• 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: #include "xxx.inc" problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #include "xxx.inc" problem


  • Subject: Re: #include "xxx.inc" problem
  • From: Andrew White <email@hidden>
  • Date: Wed, 08 Sep 2004 09:58:12 +1000

Torsten Sadowski wrote:
Not quite. <> searches the system include directories and all directories
given with the -I option, whereas "" needs the full path either
absolute or relative to the current directory. This is only what gcc
expects.

I don't think this is true.

By the gcc man page, a "-I dir" directive adds the directory to the head of both the system (<>) and user ("") search paths. "-I- dir" adds the directory to the head of the user search path only (and stops searching in the 'current' directory), while "-isystem dir" affects only the system paths (and overrides "-I").


From the examples, '#include "something.h"' should work if 'something.h' is in either the same directory as the including file OR in any of the directories specified with -I options. '#include <something.h>' should find 'something.h' in either the directories specified with -I (or -isystem) or the system directories.


--
Andrew White
_______________________________________________
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: #include "xxx.inc" problem
      • From: Torsten Sadowski <email@hidden>
References: 
 >Re: #include "xxx.inc" problem (From: George Warner <email@hidden>)

  • Prev by Date: CVS process goes awol
  • Next by Date: Re: Sampler problem
  • Previous by thread: Re: #include "xxx.inc" problem
  • Next by thread: Re: #include "xxx.inc" problem
  • Index(es):
    • Date
    • Thread