开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜