Is there an easy way to COLOR-CODE the compiler outputs?

Ann Brown picture Ann Brown · Feb 17, 2013 · Viewed 29.5k times · Source

gcc (or other compilers) often generate huge text output and it's very difficult to see where the error is or miss warnings. I've done some search but havn't found a clean simple solution to color code the compiler output (so for instance warnings are yellow, errors are red, etc...)

Answer

akid picture akid · Apr 13, 2014

Gcc 4.9 seems to have added this feature via the -fdiagnostics-color flag: