开发者

how to make g++ count errors on compilation

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜