Re: #include "xxx.inc" problem
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.