www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/30/12:32:25

From: fredex AT fcshome DOT stoneham DOT ma DOT us
Message-Id: <199606301118.HAA05922@fcshome.stoneham.ma.us>
Subject: Re: Screen capture of compilations
To: p00088 AT psilink DOT com (paul winner)
Date: Sun, 30 Jun 1996 07:18:04 -0400 (EDT)
Cc: djgpp AT delorie DOT com
In-Reply-To: <3045147437.0.p00088@psilink.com> from "paul winner" at Jun 29, 96 11:20:33 am

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019