Re[2]: "Argument list too long" error due to huge number of -I<dir> parameters in gcc command line
Vasily Lukichev
luckich@inbox.ru
Fri Jul 13 08:14:00 GMT 2012
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@gmail.com>:
>
>
>
>
> 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
>
More information about the Gcc-help
mailing list