Path: chuka.playstation.co.uk!news From: Jim Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Redirect gcc >file Date: Mon, 21 Apr 1997 06:22:29 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 22 Message-ID: <335AF994.28F6@micronetics.com> References: <335BF646.AD6@compuserve.com> NNTP-Posting-Host: jim.micronetics.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.0b2 (Win95; I) X-Priority: 3 (Normal) Ken Lam wrote: > > I have tried redirecting gcc's output to a file > gcc xxx.c > file.txt > but all the text still goes to the screen. > > I'd like to collect all the error messages so that I can view them at > leisure later : ( > > Ken Lam > ESP Software Thats because errors get written to stderr. Try gcc >& gcc.err Hope that helps Jim