开发者

how to make g++ count errors on compilation

开发者 https://www.devze.com 2023-04-03 04:39 出处:网络
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 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

精彩评论

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