Re[2]: "Argument list too long" error due to huge number of -I<dir> parameters in gcc command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Jonathan,

Thanks for the tip.

I will try it.

As a quick question... The fail happens in cc1plus utility: so, all the includes are passed in cc1plus. I am thinking if @file will help in that case?

Thanks,
Vasily.

Fri, 13 Jul 2012 08:37:10 +0100 от Jonathan Wakely <jwakely.gcc@xxxxxxxxx>:
>  
> 
>   
>   
> On 13 July 2012 07:56, Vasily Lukichev wrote:
>  > Hello,
>  >
>  > It is possible to pass in the gcc command line include directories via -I or -I-.
>  >
>  > I am faced with a problem that I have too many -I<dir> lines in the gcc command line. It leads to "Argument list too long" error.
>  >
>  > I am thinking that probably it is possible to put all -I<dir> options in a separate file and pass the file location to gcc. Is it possible at all?
> 
>  Yes, see the @file option documented at the bottom of this page:
> http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html
>     



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux