Have you ever heard about a script able to make the g++ error messages more readable?
I am 开发者_StackOverflowpretty sure I heard about it some times ago but I can't remember the name.
Thank you.
You might be thinking of STLFilt, which supports a variety of C++ compilers but is no longer being developed and doesn't guarantee to work with the latest versions of g++.
You're probably not talking about this, but there is colorgcc, which does make it more readable.
if you like Ruby there is GilCC! It is very easy to install and use. Unlike Perl based scripts GilCC has statistics such as # of warnings and error and compile time. You don't have to mess with .bash files and it is cross platform as long as you can run Ruby on your machine. Since it is Ruby you can make it do different things such as trigger test automation, unit test or program external hardware.
Here is the link to the download page: http://www.onlysolutionssoftware.com/gilcc/
I would like to add that GilCC works with any GCC version. A lot of projects out there are limited to specific versions of GCC and because GilCC does not touch GCC or its settings, you are safe.
If it's about the messages themselves (and not how to e.g. color them) I remember that in another, similar question (which I can't find at the moment) it was suggested to use LLVM/Clang instead of GCC as it has better error messages.
精彩评论