🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #1108

Re: Redireting g++ console output?

#1108
From: Dr. Philip Martin
Date: Tue, 01 Feb 2000 00:00
19 lines
1452 bytes
Jack Kelly Dobson wrote:

> 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.
>
> thx j-

The trick is to put the  compile in batch... try this

g++ -c file.ccp > & file.out

DrPhi
Technical Details
Message-ID: <389670A3.119B5043@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: faa64,452cb84fa50a88f3
X-Google-Attributes: gidfaa64,public
X-Google-Thread: 100c5f,452cb84fa50a88f3
X-Google-Attributes: gid100c5f,public
X-Google-Thread: f65d0,452cb84fa50a88f3
X-Google-Attributes: gidf65d0,public
X-Google-Thread: 10a73c,452cb84fa50a88f3
X-Google-Attributes: gid10a73c,public
From: "Dr. Philip Martin" <drpmartin@home.com>
Subject: Re: Redireting g++ console output?
Date: 2000/02/01
Message-ID: <389670A3.119B5043@home.com>
X-Deja-AN: 580216966
Content-Transfer-Encoding: 7bit
References: <3895C9FB.91BF13B5@binc.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@home.net
X-Trace: news.rdc2.mi.home.com 949383317 24.7.254.146 (Mon, 31 Jan 2000 21:35:17 PST)
Organization: @Home Network
MIME-Version: 1.0
NNTP-Posting-Date: Mon, 31 Jan 2000 21:35:17 PST
Newsgroups: alt.linux,gnu.gcc,gnu.gcc.help,linux.dev.gcc,alt.os.linux