开发者

gcc c++ command line error-message parser

开发者 https://www.devze.com 2023-01-03 22:30 出处:网络
Are there any programs for parsing and displaying in a nice format the c++ 开发者_如何学Goerror messages generated by gcc.

Are there any programs for parsing and displaying in a nice format the c++ 开发者_如何学Goerror messages generated by gcc.

I'm really looking for something like less that I can pipe my errors into that will collapse the template parameter lists by default, maybe with some nice highlighting so that my errors are actually readable.

(Yes, it's boost's fault I have such incomprehensible errors, in case you were wondering)


STL Error Decryptor (AKA STLFilt) can help decode them. I've had mixed results.


Both STLFilt and TextFilt format and filter complicated c++ error messages.

STLFilt has more features and seems to be better maintained.

TextFilt is more customizable.


This is the way that I have used to resolve this issue, it might not be the best but it helps a lot if you have a heavily templated C++ code.

0

精彩评论

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

关注公众号