filter compiler error messages - how to?

General questions regarding the usage of CodeLite
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

filter compiler error messages - how to?

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: filter compiler error messages - how to?

Post 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
Make sure you have read the HOW TO POST thread
HJarausch
CodeLite Veteran
Posts: 98
Joined: Thu Feb 18, 2010 10:54 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: filter compiler error messages - how to?

Post 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.
Post Reply