Redirect Error Messages Output To File
Yabar
Yabar@emailgo.de
Sun Jul 24 18:04:00 GMT 2011
Hi Andi,
thank you very much for your reply.
This helped me a lot!
Andi Hellmund-3 wrote:
>
> Hi,
>
> this question is not specific to gcc, but to any Linux/UNIX environment.
> The error messages are printed to 'stderr' and not 'stdout'. Assuming
> BASH, you could redirect the error messages by
>
> g++ main.cpp > out.txt 2> err.txt
>
> > redirects 'stdout'
> 2> redirects 'stderr'
>
> Andi
>
>
--
View this message in context: http://old.nabble.com/Redirect-Error-Messages-Output-To-File-tp32126536p32126895.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list