James
James

Reputation: 25513

gcc c++ command line error-message parser

Are there any programs for parsing and displaying in a nice format the c++ error 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)

Upvotes: 7

Views: 3066

Answers (3)

Mani Zandifar
Mani Zandifar

Reputation: 1280

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.

Upvotes: 0

deft_code
deft_code

Reputation: 59269

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.

Upvotes: 0

Stephen
Stephen

Reputation: 49156

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

Upvotes: 1

Related Questions