Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Improving g++ output

Tags:

c++

g++

g++ sometimes produces pretty convoluted outputs. Specially when dealing with templates. Is there any tool that makes g++ output more readable? ... at least some color?

It may sound silly to ask this question here, but I've been unable to google my way out of this.

like image 812
slezica Avatar asked Apr 20 '11 15:04

slezica


1 Answers

GCC as of 4.9 has colourized output ☺

Append the following to your bashrc/zshrc/whatever.

export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 
like image 148
David C. Bishop Avatar answered Sep 24 '22 21:09

David C. Bishop