Page 1 of 1

filter compiler error messages - how to?

Posted: Thu Oct 11, 2012 12:25 pm
by HJarausch
Hi,

C++ template error messages are notoriously hard to decipher.
There is a (Perl) program STLFILT ( http://www.bdsoft.com/tools/stlfilt.html )
which reduces the error messages to human readable part.

What is the canonical place to add such a filter program within CodeLite.

Many thanks for a hint,
Helmut.

Re: filter compiler error messages - how to?

Posted: Thu Oct 11, 2012 12:46 pm
by eranif
How would you use it in command line?
Tell me how you do it in command line and I will tell you how to set it in codelite (usually via the CXX environment variable)

Eran

Re: filter compiler error messages - how to?

Posted: Thu Oct 11, 2012 10:22 pm
by HJarausch
As is, the gfilt script is used instead of a g++, so I think one can let CodeLite invoke gfilt instead of g++. I'll try that.
One could change the script to invoke it as

g++ <flags> <sources...> | gfilt
but I don't know if CodeLite supports the Unix pipe operator.

Thanks for answering,
Helmut.