GCC: limitation with the command line length

Neatsoul neatsoul33@gmail.com
Thu Jan 8 14:44:00 GMT 2009


Hello everybody,

First of all I would like to thank you to try to help me.

After many tests, I succeeded in compiling my project in the following
situation :
- I launched cygwin (version 1.5.24), the bash is in the version 3.2.
- I called another version of the bash (which is located in an other
old version of cygwin) which is 2.05b.
- I launched the following command "gcc @filename" with the version
3.4.4 of gcc. "filename" is the filename of a file which contains all
the options to compile and which has a size > 32K.

If I don't change the version of the bash, the "@" option is not
recognized with the same version of gcc...Why ? I believed that the
"@" option depends from gcc and not the bash ...

This solution doesn't suit me because i need to mix with the bash
version of a cygwin and the gcc version of another ...

Have you got some new idea ?

Best Regards

2009/1/5 Ian Lance Taylor <iant@google.com>:
> Neatsoul <neatsoul33@gmail.com> writes:
>
>> So I tried to use the "@" option of GCC in cmd.exe but it doesn't seem
>> to work. Gcc return the "@file.c: No such file or directory" error so
>> i deduce that the @ option is not recognized.
>
> You neglected to say which version of gcc you are using.  gcc has
> supported the @file.c syntax since gcc 4.1.0.
>
> Ian
>



More information about the Gcc-help mailing list