This is the mail archive of the
mailing list for the Cygwin project.
Re: Gcc/ld and long command lines (> 32k)
- From: Larry Hall <cygwin-lh at cygwin dot com>
- To: Johan Holmberg <holmberg at iar dot se>, cygwin at cygwin dot com
- Date: Thu, 08 Apr 2004 11:58:13 -0400
- Subject: Re: Gcc/ld and long command lines (> 32k)
- References: <Pine.GSO.email@example.com>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
At 11:50 AM 4/8/2004, you wrote:
>I tried to compile/link an application consisting of several hundred
>C/C++ files. This gives quite a long command line when it is time
>to link the application.
>Windows seem to have a limit of 32k for the length of the command
>line as given to to the system call 'CreateProcess'. I guess this is
>a "hard" limit in Windows.
>The length of my linker command line exceeds this 32k limit.
>Is it possible to pass a list of filenames to ld
>in some other way, to get around this limit ?
>I know about the special "@filename" syntax in Cygwin, but there
>seem to be two problems:
>- it is no idea to give the special @filename argument to "gcc.exe",
> since it is calling other exe-files and will have problems itself
> to pass the file list on to these (ld, collect2, ...)
>- I tried to specify "-Wl,@files.txt" to "gcc.exe", hoping that
> "@files.txt" would be picked up by "ld.exe", but I got the error
> ld: @files.txt: No such file: No such file or directory
> Is ld.exe not interpreting the special "@" like other
> Cygwin programs ?
>Am I missing some obvious way of doing what I want ?
Did you try this?
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html