This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Default include directories


On Thu, 2013-03-28 at 10:16 -0700, Ian Lance Taylor wrote:
> They are constructed at the time that GCC is compiled, based on the
> configure option.  They are also affected by any -B option, the
> INCLUDE_PATH environment variable, options like -nostdinc, and
> obviously options like -I, -iquote, --sysroot, etc.  So really
> computing the set of directories is pretty hard, and I would recommend
> invoking gcc -v and parsing the output.

Ah, makes perfect sense. Will instead deploy a solution reliant on
parsing the output of gcc -v, as you suggested, Ian.

Many thanks for the invaluable info.

-- 
Miguel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]