www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/28/05:14:34

Date: Tue, 28 Jun 1994 11:31:47 +0300 (EET DST)
From: Janne Kukonlehto <jtklehto AT stekt DOT oulu DOT fi>
Subject: Re: Redirecting gcc's messages
To: Peter Waszkewitz <peter AT studbox DOT uni-stuttgart DOT de>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

On Fri, 24 Jun 1994, Peter Waszkewitz wrote:
> Is there any possibility of redirecting gcc's messages to a file. I tried 
> the standard method:
>   gcc [whatever there is to do] > filename
> but it didn't work.

Gcc writes all its messages to standard error which cannot be 
redirected under Command.com.

Under 4dos you can type:

  gcc [whatever there is to do] >& filename

which redirects both standard output and standard error.

You can find 4dos from any SimTel mirror (for example: 
ftp.funet.fi:/pub/msdos/SimTel/4dos/4dos50a.zip and 4dos50b.zip).
It is fully compatible with Command.com.

-- 
Janne Kukonlehto
jtklehto AT phoenix DOT oulu DOT fi   http://phoenix.oulu.fi/~jtklehto/index.html
jtklehto AT stekt DOT oulu DOT fi       http://stekt.oulu.fi/~jtklehto/index.html


- Raw text -


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