Article View: alt.linux
Article #344Re: howto move the errors from gcc to a file?
From: Robert Denham
Date: Fri, 25 May 2001 04:52
Date: Fri, 25 May 2001 04:52
21 lines
2111 bytes
2111 bytes
You can redirect the stderr in bash like this: gcc hello.c -o hello 2> errors.txt You might like to try writing your code using an editor like emacs or xemacs. This allows you to compile the code, showing the errors and allowing you to locate the errors in the source file. There is access to debuggers too. Others will no doubt suggest other alternatives, experiment a bit to find what suits you. Robert Denham "David. E. Goble" wrote: > Hi all; > > I am just beginning to try programming in linux (redhat). > > My problem is when I use gcc ...etc it produces a scolling list of > errors. How can I move or pipe the errors to a file. ie something like > > gcc -o hello.c > error.txt?
Technical Details
Message-ID:
<3B0DE511.3C5D5A0A@dnr.qld.gov.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!newsfeed.ozemail.com.au!nsw.nnrp.telstra.net!not-for-mailReferences:
<3b0d0a50.19718301@news.adelaide.on.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,4d862f9db31ad355 X-Google-Attributes: gid10c696,public X-Google-Thread: 102983,4d862f9db31ad355 X-Google-Attributes: gid102983,public X-Google-Thread: f9b51,4d862f9db31ad355 X-Google-Attributes: gidf9b51,public X-Google-Thread: 100c5f,4d862f9db31ad355 X-Google-Attributes: gid100c5f,public X-Google-ArrivalTime: 2001-05-24 21:52:37 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!newsfeed.ozemail.com.au!nsw.nnrp.telstra.net!not-for-mail Message-ID: <3B0DE511.3C5D5A0A@dnr.qld.gov.au> From: Robert Denham <Robert.Denham@dnr.qld.gov.au> X-Mailer: Mozilla 4.75 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.setup Subject: Re: howto move the errors from gcc to a file? References: <3b0d0a50.19718301@news.adelaide.on.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 Date: Fri, 25 May 2001 14:52:33 +1000 NNTP-Posting-Host: 203.46.162.120 X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 990766354 203.46.162.120 (Fri, 25 May 2001 14:52:34 EST) NNTP-Posting-Date: Fri, 25 May 2001 14:52:34 EST Organization: Customer of Telstra Big Pond Direct