🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#41
From: Ravi K. Swamy
Date: Mon, 18 Mar 1996 05:37
14 lines
787 bytes
In article <4igdeo$8tf@news.jhu.edu>, yuehong <yuehong@psi.ece.jhu.edu> wrote:
>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.

g++ hellp.cpp >& bug

Ravi
--
Ravi K. Swamy                http://www4.ncsu.edu/~rkswamy/www/
rkswamy@eos.ncsu.edu         root@genom.com
Technical Details
Message-ID: <4iisrf$h6i@taco.cc.ncsu.edu>
Path: arc1-ca.pugleaf.net!taco.cc.ncsu.edu!rkswamy
References: <4igdeo$8tf@news.jhu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!taco.cc.ncsu.edu!rkswamy
From: rkswamy@unity.ncsu.edu (Ravi K. Swamy)
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 05:37:51 GMT
Organization: Gunsmith Cats
Message-ID: <4iisrf$h6i@taco.cc.ncsu.edu>
References: <4igdeo$8tf@news.jhu.edu>
NNTP-Posting-Host: cc04du.unity.ncsu.edu