🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #40

Re: Help: how do you redirect compile error to a file

#40
From: Andreas Christoph
Date: Mon, 18 Mar 1996 12:40
21 lines
1059 bytes
In article <4igdeo$8tf@news.jhu.edu>,
	yuehong@psi.ece.jhu.edu (yuehong) writes:
>I try to use the following command when I compile hello.cpp 
>using gcc on linux:
>
>g++ hello.cpp >bug
>
>I thought error might be saved in bug. But, nothing there.

Errors are reported to standard error (descriptor 2), so make it
g++ hello.cpp 2>bug

Bye,
Andreas

-- 
--------------------------------------------------------------------
Andreas Christoph
Alexanderstr. 292
26127 Oldenburg
--------------------------------------------------------------------
Technical Details
Message-ID: <4ijljm$7rb@christoph.ol.sub.de>
Path: arc1-ca.pugleaf.net!christoph.ol.sub.de!news
References: <4igdeo$8tf@news.jhu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!christoph.ol.sub.de!news
From: andi@christoph.ol.sub.de (Andreas Christoph)
Newsgroups: comp.os.linux.misc,comp.lang.c++,gnu.gcc.help
Subject: Re: Help: how do you redirect compile error to a file
Date: 18 Mar 1996 12:40:22 GMT
Organization: private
Message-ID: <4ijljm$7rb@christoph.ol.sub.de>
References: <4igdeo$8tf@news.jhu.edu>
NNTP-Posting-Host: christoph.ol.sub.de
X-Newsreader: knews 0.9.3
In-Reply-To: <4igdeo$8tf@news.jhu.edu>
To: yuehong@psi.ece.jhu.edu (yuehong)