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
精彩评论