开发者

How can I save to text g++ or gcc compiler status in C++?

开发者 https://www.devze.com 2023-02-08 11:03 出处:网络
I want to save to a te开发者_如何学Goxt file the C++ compiler status. I\'m using Windows. Thanks.redirect the output to a file using the redirection operator \'>\'.

I want to save to a te开发者_如何学Goxt file the C++ compiler status. I'm using Windows.

Thanks.


redirect the output to a file using the redirection operator '>'. You may want to use the STDERR stream for redirection as most of the compilers output the compilation errors on this stream, so you should try the '2>' redirection.

refer the below link for more details on redirection on Windows: http://technet.microsoft.com/en-us/library/bb490982.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消