This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: logging gcc messages
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Michael Markowsky <mmarkows at uni-bremen dot de>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 5 Mar 2014 19:04:10 +0000
- Subject: Re: logging gcc messages
- Authentication-results: sourceware.org; auth=none
- References: <53175EDB dot 6060207 at uni-bremen dot de>
On 5 March 2014 17:28, Michael Markowsky wrote:
> Dear Madam , Dear Sir
>
> I use gcc on a linux - system and wish to save the compiler messages for
> further analysation.
> so something like gcc filename.cpp>result.txt didnÂt work
As Tim said, you need to redirect stderr to the file, not just stdout.
N.B. you almost certainly want to use g++ to compile a C++ file, not gcc.