🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #345

Re: howto move the errors from gcc to a file?

#345
From: Cindy Brady
Date: Fri, 25 May 2001 06:07
20 lines
2006 bytes
What I like to do is:

 gcc -o hello hello.c 2>&1 | head -18

which only shows the first 18 lines of output. Having hundreds of error
messages can get a bit demoralising and will often find that fixing the
first few errors will eliminate many of the following errors anyway.

Love, Cindy.

"David. E. Goble" <goble@gtech> wrote in message
news:3b0d0a50.19718301@news.adelaide.on.net...
> 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: <NqmP6.19959$hV3.19422@newsfeeds.bigpond.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mail
References: <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: f9b51,4d862f9db31ad355
X-Google-Attributes: gidf9b51,public
X-Google-Thread: 100c5f,4d862f9db31ad355
X-Google-Attributes: gid100c5f,public
X-Google-Thread: 102983,4d862f9db31ad355
X-Google-Attributes: gid102983,public
X-Google-ArrivalTime: 2001-05-24 23:06:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mail
From: "Cindy Brady" <Cindy_Brady@bigpond.com>
Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.setup
References: <3b0d0a50.19718301@news.adelaide.on.net>
Subject: Re: howto move the errors from gcc to a file?
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <NqmP6.19959$hV3.19422@newsfeeds.bigpond.com>
Date: Fri, 25 May 2001 16:07:17 +1000
NNTP-Posting-Host: 203.54.121.64
X-Trace: newsfeeds.bigpond.com 990769965 203.54.121.64 (Fri, 25 May 2001 15:52:45 EST)
NNTP-Posting-Date: Fri, 25 May 2001 15:52:45 EST
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)