www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/26/15:28:03

From: Yamaha / XYZZ <scriven AT CS DOT ColoState DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Redirecting gcc output?
Date: Thu, 26 Sep 1996 11:21:02 -0600
Organization: XYZZ Software Co.
Lines: 19
Message-ID: <324ABB7E.41C6@CS.ColoState.edu>
References: <52cf3v$9qr AT news2 DOT cnct DOT com>
NNTP-Posting-Host: rodin.vis.colostate.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John Panettiere wrote:

> I generally like to redirect output to a text file when I compile.
> The standard '>' redirect doesn't seem to work when I use gcc.  How
> can I redirect the list of warnings/errors produced by gcc to a text
> file?

Try the "redir" utility that comes with DJGPP.
It'll redirect stderr, much like the ">" redirects stdout.

I don't remember where the outfile parameter goes, but it's something
like:
redir -e error.log gcc <whatever>


-- Yamaha / XYZZ
mailto:scriven AT CS DOT ColoState DOT edu          
mailto:scriven AT VIS DOT ColoState DOT edu
http://www.vis.colostate.edu/~scriven/

- Raw text -


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