"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,

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? 
Unfortunately I did not find a solution how to implement it in gcc.

May be there is some other way how to pass a lot of -I<dir> options without having troubles with  "Argument list too long error"?

I do not have root access on the host so, cannot "play" with ARG_MAX environment variable.
Code refactoring is not a solution at the moment. 

Thanks in advance for your help,
Vasily Lukichev.



[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