This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Ask for help
- To: "Haifeng (Tommy) Shen" <hfshen at cit dot gu dot edu dot au>
- Subject: Re: Ask for help
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 26 Sep 1999 21:49:50 -0300
- Cc: bug-gcc at gnu dot org, help-gcc at gnu dot org
- References: <199909270038.KAA18644@iskra.cit.gu.edu.au>
On Sep 26, 1999, "Haifeng (Tommy) Shen" <hfshen@cit.gu.edu.au> wrote:
> Can anybody tell me how to redirect compling results to a file? I
> cannot find an option similar to "Xstdout" in javac by which
> compiling results can be redirected to a file.
That's because such kind of redirection can be easily handled by the
shell from which you invoke gcc:
gcc ... > output.file 2>&1 # if you use sh, ksh, zsh or bash
gcc ... >& output.file # if you use csh or tcsh
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them