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: Redirect Error Messages Output To File


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.


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