delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/18/04:22:05

From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson)
Subject: Re: Catching g++ error output
18 Apr 1997 04:22:05 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199704181052.UAA13341.cygnus.gnu-win32@mundook.cs.mu.OZ.AU>
Original-To: jpmorgan AT unm DOT edu (James Paul Morgan)
Original-Cc: gnu-win32 AT cygnus DOT com (Cygnus GNU-win32 mailing list)
In-Reply-To: <Pine.A32.3.91.970418010547.20142E-100000@pegasus.unm.edu> from "James Paul Morgan" at Apr 18, 97 01:11:07 am
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

James Paul Morgan, you wrote:
> 
> Is there any way to capture the error output from g++ when it fails on a 
> compile?

In bash:

	gcc ... >& error-file

or

	gcc ... 2>&1 | tee error-file

-- 
Fergus Henderson <fjh AT cs DOT mu DOT oz DOT au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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