Can I edit the print output of GCC in linux?
I want the error massages print in a different color to terminal, is it possible and how?
I want to print the wor开发者_Python百科d 'ERROR' in red and 'warning' in yellow.
Thank You.
You can use colorgcc for that.
See also:
http://en.wikipedia.org/wiki/Tail_%28Unix%29#Variants
if you like Ruby there is GilCC! It is very easy to install and use. Unlike Perl based scripts GilCC has statistics such as # of warnings and error and compile time. You don't have to mess with .bash files and it is cross platform as long as you can run Ruby on your machine. Since it is Ruby you can make it do different things such as trigger test automation, unit test or program external hardware.
Here is the link to the download page: http://www.onlysolutionssoftware.com/gilcc/
精彩评论