To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Link Woes solved (command line length) From: alane AT wozzle DOT linet DOT org (J. Alan Eldridge) Date: Thu, 07 Jan 93 01:07:01 EST Organization: Disorganization Mark Bergman writes: > As it turns out (as reported via gcc -v), only some file names (either > 11 or 12 of the 13, depending on the length of the names of the last > three files) were being passed to the linker. > > I'm used to a Unix environment, and have the MKS Toolkit on my DOS box. > The Kornshell allows command lines up to 8K. I hadn't encountered a > command-line-length problem in ages! > > Why do GCC, and I presume the other binaries, have this limitation? If > the "normal" environment (MS-DOS shell) imposes a limit, why not just > take as many characters as you are handed (the GNU way) and let the > shell impose it's own limitation? DJ's gcc supports the standard MS-DOG syntax of command @filename to pass the command line in the contents of "filename". I suggest you modify your makefile to take advantage of this. I have had this same problem with Borland C++ when just the compiler options alone got too long to even get one filename on the command line, and this is how I got out of it. Happy hacking. alane AT wozzle DOT linet DOT org (J. Alan Eldridge) Fido: The University of Walamaloo 1:272/38.473