开发者

GCC and cerr stream [closed]

开发者 https://www.devze.com 2023-04-13 04:26 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit开发者_如何学运维 the help center. Closed 10 years ago.

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.

0

精彩评论

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

关注公众号