Article View: alt.linux
Article #1109Re: Redireting g++ console output?
From: Kedar Dhamdhere
Date: Wed, 02 Feb 2000 00:00
Date: Wed, 02 Feb 2000 00:00
19 lines
1541 bytes
1541 bytes
Jack Kelly Dobson claims: > Hello, > > Can anyone tell me how to redirect the console output of g++ to a > file? > > Tried: g++ file.cpp > file.out > > This, I assume, is attempting to redirect the binary output to a > file. I want to capture the compile/error messages to a file. Error messages in gcc/g++ are printed to stderr. So try something like g++ file.cpp 2> file.err -- Kedar Dhamdhere -- "Unibus timeout fatal trap program lost sorry" - An error message printed by DEC's RSTS operating system for the PDP-11
Technical Details
Message-ID:
<slrn89g6qg.fst.kedar@everest.cse.iitb.ernet.in>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3895C9FB.91BF13B5@binc.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,452cb84fa50a88f3 X-Google-Attributes: gid11318c,public X-Google-Thread: f65d0,452cb84fa50a88f3 X-Google-Attributes: gidf65d0,public X-Google-Thread: 100c5f,452cb84fa50a88f3 X-Google-Attributes: gid100c5f,public X-Google-Thread: faa64,452cb84fa50a88f3 X-Google-Attributes: gidfaa64,public X-Google-Thread: 10a73c,452cb84fa50a88f3 X-Google-Attributes: gid10a73c,public From: kedar@everest.cse.iitb.ernet.in (Kedar Dhamdhere) Subject: Re: Redireting g++ console output? Date: 2000/02/02 Message-ID: <slrn89g6qg.fst.kedar@everest.cse.iitb.ernet.in> X-Deja-AN: 580784457 Sender: news@bhishma.cse.iitb.ernet.in (USENET News) X-Nntp-Posting-Host: everest References: <3895C9FB.91BF13B5@binc.net> Organization: Dept. of Computer Sci. & Engg., IIT Bombay, India User-Agent: slrn/0.9.6.2 (HP-UX) Reply-To: Kedar Dhamdhere <kedar@cse.iitb.ernet.in> Newsgroups: alt.linux,gnu.gcc,gnu.gcc.help,linux.dev.gcc,alt.os.linux