From: trout@sci.fi (Antti Harju)
Subject: Re: Catching g++ error output
18 Apr 1997 12:05:02 -0700
Sender: mail@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <3.0.1.32.19970418182640.006d29b8.cygnus.gnu-win32@sci.fi>
References: <Pine.SUN.3.96.970417185746.15874C-100000@tlaloc.stat.colostate.edu>
X-Sender: trout@sci.fi
X-Mailer: Windows Eudora Pro Version 3.0.1 (32)
Original-To: gnu-win32@cygnus.com
Original-Cc: James Paul Morgan <jpmorgan@unm.edu>
In-Reply-To: <Pine.A32.3.91.970418010547.20142E-100000@pegasus.unm.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Original-Sender: owner-gnu-win32@cygnus.com

At 01:11 18.4.1997 -0600, you wrote:
>Is there any way to capture the error output from g++ when it fails on a 
>compile?  Sometimes, a few simple typos or minor bugs can generate more 

In 4DOS (not in command.com):

command >& filename    To redirect standard output and standard error to a
                       file or device
command >&> filename   To redirect standard error only to a file or device

You can get a handy scrollable/searchable list with

gcc <params> |& list/s

	-trout

--
"We are what we pretend to be, so we must be careful
 about what we pretend to be."
                                     - Kurt Vonnegut

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
