This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: a question about one part of gcc manual
- From: Ian Lance Taylor <iant at google dot com>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Sat, 30 Apr 2011 20:34:42 -0700
- Subject: Re: a question about one part of gcc manual
- References: <BANLkTi=JruLLh6f=sdQpyTJr=Hp3YNPbHQ@mail.gmail.com> <BANLkTimSnGXEkLVn6EtOgk8gNLHTpn63cA@mail.gmail.com> <mcrsjt6qkvp.fsf@google.com> <BANLkTi=oPD-N-tL+O7J6j3JGrwm_NQD5qA@mail.gmail.com> <BANLkTinK6+Ys1KcCJ4tbVA98j+HWgF8nGQ@mail.gmail.com> <BANLkTi=M4M2RpoWqeR134zXh8w=U3=ChvA@mail.gmail.com> <BANLkTintvNDc62rQdfWCRWjJMbN_Ajq5WA@mail.gmail.com> <mcrzkndm6iq.fsf@google.com> <BANLkTi=HJ-unL8Sn+wp=7TJOvEuTrSpByg@mail.gmail.com> <BANLkTikvji+EV=KCQeukZ+W+=0J4M0EB4w@mail.gmail.com> <mcrzkn79x1p.fsf@coign.corp.google.com> <BANLkTi=AzJShcAQsLCD-A1wwrmsoxW807Q@mail.gmail.com>
ali hagigat <hagigatali@gmail.com> writes:
> Thank you for the explanation but you did not explain the role of
> "include_next" here!! You only insisted on some path is ignored!!!
That is not what Jonathan said. The -I option is ignored. The path is
not ignored, because the -isystem option is not ignored.
> I know that when we use -I and there is the same pathname in the
> system , -I is ignored!!
Yes, -I is ignored.
> But WHERE "include_next" is used?
Install gcc. Look for .h files in the gcc install tree. Look to see
which ones use #include_next. Think about what it means.
> Is it used with -isystem and in the file it is introducing ONLY?
The -isystem option is independent of the #include_next directive,
except in the sense that -isystem gives directories for #include_next to
search.
> Please rewrite this part of gcc manual, it is not clear at all!!
Which part specifically is not clear? As far as I know the -I and
-isystem options and the #include_next directive are described
correctly.
Ian