Mail Archives: djgpp/1996/06/30/12:32:25
Thinking furiously, paul winner wrote:
>
> I'm trying to capture the output of my V2 compilations so that I can
> cleanup the -Wall errors.
>...
> With djgpp make foo > warnings.foo gives a warnings.foo file which
> contains the steps as progressed through the makefile, ie:
>
> gcc -c -O -I../include tile.o tile.c
>
> and warnings to the screen (ie, '/* used in comment'), but the piped
> file and the screen don't match at all.
>
> PS: Is there an explanation somewhere for the command line /W options?
>
This is because warnings/errors are written to STDERR, not stdout.
Unfortunately, DOS's command procesor (command.com) does not provide
a way to redirect stderr so, as with any other DOS program that writes
to stderr (and there are some), you have no way to redirect that portion
of the output.
however, one of the djgpp binaries archives (can't recall right now
WHICH package it is) contains a tool named 'redir' which will allow
you to (among other things) redirect stderr. Check it out.
Fred
--
-------------------------------------------------------------------------------
.---- Fred Smith / Office: fred AT computrition DOT com
( /__ ,__. __ __ / __ : / 508-663-2524
/ / / /__) / / /__) .+' Home: fredex AT fcshome DOT stoneham DOT ma DOT us
/ / (__ (___ (__(_ (___ / :__ 617-438-5471
-------------------------------- Jude 1:24,25 ---------------------------------
- Raw text -