Article View: comp.os.linux.misc
Article #42Re: Help: how do you redirect compile error to a file
From: Daniel-Marian Baboiu
Date: Thu, 28 Mar 1996 23:07
Date: Thu, 28 Mar 1996 23:07
24 lines
1339 bytes
1339 bytes
yuehong 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. '>' redirects the standard output; the compiler errors are on the standard error; it happens that both are mapped to the screen. What you have to do is (if you are using bash as shell) g++ hello.cpp >bug 2>&1 ------------------------------------------------- Daniel-Marian Baboiu University of Central Florida / CREOL 4000 Central Florida Blvd Orlando, FL 32816-2700 407-823-6919 Fax: 407-823-6955 e-mail: daniel@soliton.creol.ucf.edu --------------------------------------------------
Technical Details
Message-ID:
<315B1BBF.43215860@soliton.creol.ucf.edu>Path:
arc1-ca.pugleaf.net!news.cc.ucf.edu!usenetReferences:
<4igdeo$8tf@news.jhu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.cc.ucf.edu!usenet From: Daniel-Marian Baboiu <daniel@soliton.creol.ucf.edu> Newsgroups: comp.os.linux.misc,comp.lang.c++,gnu.gcc.help Subject: Re: Help: how do you redirect compile error to a file Date: Thu, 28 Mar 1996 18:07:43 -0500 Organization: University of Central Florida / CREOL Message-ID: <315B1BBF.43215860@soliton.creol.ucf.edu> References: <4igdeo$8tf@news.jhu.edu> NNTP-Posting-Host: steglab.creol.ucf.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (X11; I; Linux 1.2.8 i586) To: yuehong <yuehong@psi.ece.jhu.edu>