This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Ask for help


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]