This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: logging gcc messages


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]