Catching g++ error output

Fergus Henderson fjh@cs.mu.OZ.AU
Fri Apr 18 03:53:00 GMT 1997


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@cs.mu.oz.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@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list