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