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: -I- option


Much appreciate for the reply Mr.Wakely.
So '-I." is the same as '-I-' except that the current directory is
searched too, isn't it?

On Sun, Sep 25, 2011 at 5:19 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 25 September 2011 14:31, ali hagigat wrote:
>> gcc -Itmp3/hd1 -Itmp3/hd2 -I-tmp3/hd3 prog9.c -o prog9
>>
>> I have used -I- in the above instruction.
>
> No you haven't, you've used -I-tmp/hd3 which is the same as -I -tmp/hd3
>
> i.e. it adds the directory "-tmp/hd3" to the include path
>
> The -I- option doesn't take a directory, if it did the manual would say -I-dir
>


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