GCC and cerr stream [closed]
I want to write program to test another programs using gcc. And I want to compile *.cpp file using gcc and if when on compiling was error i want to know about it.
GCC gives into cerr stream something?
Yes, GCC outputs warnings and errors to standard error stream.
Did you use g++ (not gcc) to compile your C++ code? Did you link the standard C++ library?
Try passing the -v option to g++ to understand what it is doing.
精彩评论