Mail Archives: djgpp/1997/02/10/22:25:30
Anders "ARGH" Straadt wrote:
>
> hmmm, i'm trying to make this makefile, and i'm getting, like, 10000
> errors... but that's not the problem... the problem is to output all
> those sucky errors to a file instead of the screen..... in
> fully-dos-compatible programs i can use > for redirection... like
> dir>direc.txt gives me the output in direc.txt, but it wont work for
> gcc.exe or make.exe. SO HOW THE F*** DO I MAKE REDIRECTION ON DJGPP
> COMMANDS?
The answer is in the FAQ (v2/faq210b.zip), section 6.10. Short answer:
use the 'redir' program that comes with the standard djgpp distribution
like so:
redir -o gcc.log -eo make
The problem is that standard DOS using COMMAND.COM is incapable of
redirecting output that is sent to 'stderr'. Besides using 'redir', you
could try obtaining a smarter command interpreter such as 4DOS, Caldera
OpenDOS, or the MS-DOS port of 'bash'.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Plan: To find ANYONE willing to | http://www.cs.com/fighteer |
| play Descent 2 on DWANGO! | Tagline: <this space for rent> |
---------------------------------------------------------------------
- Raw text -