views:

59

answers:

1

Hello,
I have a tool that is added to the build-chain.
I am wondering how to redirect stdout to all compiler consoles and also, how do I break when an error occurs while executing that external tool?
Answers are sought for modern common compilers. If there is a generic process or if it can be done automatically let me know.

+1  A: 

in Visual Studio, simply have your external tool printf to stdout, and return a non zero code from main().

steelbytes
printf? I cannot use cout? How about GCC?
the_drow