-I- option

ali hagigat hagigatali@gmail.com
Mon Sep 26 17:30:00 GMT 2011


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
>



More information about the Gcc-help mailing list