This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Piping Compiler Output
- From: Phil Edwards <phil at jaj dot com>
- To: Scott Barnett <scott dot barnett at jcu dot edu dot au>
- Cc: gcc at gnu dot org
- Date: Sun, 1 Sep 2002 00:33:22 -0400
- Subject: Re: Piping Compiler Output
- References: <004701c2515c$2e002e00$229adb89@milhouse>
On Sun, Sep 01, 2002 at 12:06:26PM +1000, Scott Barnett wrote:
> Hello,
>
> I'd like to write the output of the gcc compiler to a file (logging). I've
> tried using the > operator, but that doesn't seem to work,
The compiler also writes to standard error. How to redirect that depends on
your shell. Try
gcc ..... > file 2>&1
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002