I am use to using VC++ and like the feature when you compile the program it tells you how many warnings and errors there are so at a quick glance you can tell if you made a positive change.
I am now working in Linux so have to use g++
and am getting tired of having a massive stream of 开发者_运维百科errors that I have to scroll through and guess at how many there are.
is there a way I can make g++
count the errors and warnings like VC++ does ?
{ g++ 2>&1 | tee /proc/self/fd/3 | grep Error | wc -l } 3>&1
精彩评论