Message-ID: <3AA118C2.40820D12@home.com> From: "Edward F. Sowell" X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Where does command line length limitation come from? References: <3AA03539 DOT F5CF05AE AT home DOT com> <2427-Sat03Mar2001102342+0200-eliz AT is DOT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 36 Date: Sat, 03 Mar 2001 16:05:40 GMT NNTP-Posting-Host: 24.0.195.218 X-Complaints-To: abuse AT home DOT net X-Trace: news1.bnapk1.occa.home.com 983635540 24.0.195.218 (Sat, 03 Mar 2001 08:05:40 PST) NNTP-Posting-Date: Sat, 03 Mar 2001 08:05:40 PST Organization: Excite AT Home - The Leader in Broadband http://home.com/faster To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks, Eli. I don't remember if I tried the response file method or not. In any case, I may be getting back into the subject soon and I'll keep this note for reference. So, the CMDLINE environment variable approach, once available, will solve the problem without resorting to a response file? Ed Sowell Eli Zaretskii wrote: > > From: "Edward F. Sowell" > > Newsgroups: comp.os.msdos.djgpp > > Date: Fri, 02 Mar 2001 23:56:41 GMT > > > > Also, even though the GNU make program accepts long command within > > makefiles, this does not mean that make itself can be invoked with a > > long command line. In particular, if GNU make is spawned from > > a typical PC C++ compiled program, the command line gets chopped > > to 126 characters, whereas the PC make program (nmake, smake, Borland make) > > do not. The only work-around is to compile the program > > from which the spawn call to GNU make is made with g++. > > That's not the only work-around. You can also use the response file > method for invoking a DJGPP program from a non-DJGPP one. > > The current development sources of the DJGPP library include code > which allows to pass command lines up to 1KB from non-DJGPP to DJGPP > programs and vice versa, using the CMDLINE environment variable. The > next DJGPP release will support this. > > Note that passing long command lines from COMMAND.COM's prompt > requires some non-defualt setup of COMMAND.COM as well.