Mail Archives: djgpp/2001/03/03/03:27:54
> From: "Edward F. Sowell" <sowelled AT home DOT com>
> 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.
- Raw text -