delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/19/06:35:08

Date: Sun, 19 Jan 1997 13:21:05 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jan Louwerens <jlouwere AT galaxy DOT csc DOT calpoly DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: How do I re-direct errors/warnings to file?
In-Reply-To: <5bse1v$q9l@waldorf.csc.calpoly.edu>
Message-ID: <Pine.SUN.3.91.970119131844.22894D-100000@is>
MIME-Version: 1.0

On 19 Jan 1997, Jan Louwerens wrote:

> : How do I direct the errors/warnings that are created after compile,
> : to a file?
> 
> : I tried something like this at the prompt:
> : gxx -o tb.exe tb.cpp window.cpp -lgrx20 >ERRORS
> 
> the > only pipes stdout to a file.
> use >& to pipe stdout and stderr to a file

This only works with shells that know how to do such magic.  COMMAND.COM 
doesn't.  If you work with COMMAND.COM, use the `redir' program which 
comes with DJGPP:

	redir -o ERRORS -eo gxx -o tb.exe tb.cpp window.cpp -lgrx20 

Another way is to use an editor which lets you compile from within it, 
then save the output to a file.

- Raw text -


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