• 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: Torsten Sadowski <email@hidden>
  • Date: Wed, 8 Sep 2004 10:02:36 +0200 (CEST)

Yes, I admit illegal simplification. The remaining question is "What does
XCode when I add a file to the include section of a Target?"
This is where the works/doesn't work problem is hidden and it depends on a
"known" suffix (.h,.hxx...). Is there any possibility to find out which
command line options are passed from XCode to gcc for a specific target?

Torsten

On Wed, 8 Sep 2004, Andrew White wrote:

> 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.
_______________________________________________
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.


References: 
 >Re: #include "xxx.inc" problem (From: George Warner <email@hidden>)
 >Re: #include "xxx.inc" problem (From: Andrew White <email@hidden>)

  • Prev by Date: Re: Xcode 1.x iBook Install Problems
  • Next by Date: Re: Find in project opens other projects?
  • Previous by thread: Re: #include "xxx.inc" problem
  • Next by thread: Re: #include "xxx.inc" problem
  • Index(es):
    • Date
    • Thread