Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Getting better Template error messages in terminal?

Reply
Thread Tools

Getting better Template error messages in terminal?

 
 
none
Guest
Posts: n/a
 
      05-11-2010
I am getting pretty tired of reading through multiple pages of template compile errors when I run
make on my source code. Often it takes minutes to even find a line containing the keyword 'error'.

My current solution is to copy the output from the console into gedit and from there search for the
word 'error'. Could be nice if there was a terminal which could highlight the error keyword.

But is it not possible to get a better output of template error? It could be very nice if it just
stopped when hitting the first error instead of printing multiple pages.

What are your approach to this?

I am writing my code on Ubuntu 9.04.
 
Reply With Quote
 
 
 
 
Öö Tiib
Guest
Posts: n/a
 
      05-11-2010
On 11 mai, 21:23, none <""mort\"@(none)"> wrote:
> I am getting pretty tired of reading through multiple pages of template compile errors when I run
> make on my source code. Often it takes minutes to even find a line containing the keyword 'error'.
>
> My current solution is to copy the output from the console into gedit and from there search for the
> word 'error'. Could be nice if there was a terminal which could highlight the error keyword.


Sure, you can pipe your compiler output to tool that formats them to
your liking (for example highlights word error) and then outputs.

> But is it not possible to get a better output of template error? It could be very nice if it just
> stopped when hitting the first error instead of printing multiple pages.


Tool can do anything.

> What are your approach to this?


I usually use IDEs. Most IDEs have some form of support inbuilt for
handling compiler output in less tedious manner.
 
Reply With Quote
 
 
 
 
Jeff Flinn
Guest
Posts: n/a
 
      05-11-2010
none wrote:
> I am getting pretty tired of reading through multiple pages of template
> compile errors when I run make on my source code. Often it takes minutes
> to even find a line containing the keyword 'error'.
>
> My current solution is to copy the output from the console into gedit
> and from there search for the word 'error'. Could be nice if there was a
> terminal which could highlight the error keyword.
>
> But is it not possible to get a better output of template error? It
> could be very nice if it just stopped when hitting the first error
> instead of printing multiple pages.


I use an IDE, and simply use it's find facility. I've used StlFilt from
bdsoft which simplifies and reformats error messages into more
manageable information. See http://www.bdsoft.com/tools/stlfilt.html.

Jeff
 
Reply With Quote
 
none
Guest
Posts: n/a
 
      05-12-2010
Jeff Flinn wrote:
> none wrote:
>> I am getting pretty tired of reading through multiple pages of
>> template compile errors when I run make on my source code. Often it
>> takes minutes to even find a line containing the keyword 'error'.
>>
>> My current solution is to copy the output from the console into gedit
>> and from there search for the word 'error'. Could be nice if there was
>> a terminal which could highlight the error keyword.
>>
>> But is it not possible to get a better output of template error? It
>> could be very nice if it just stopped when hitting the first error
>> instead of printing multiple pages.

>
> I use an IDE, and simply use it's find facility. I've used StlFilt from
> bdsoft which simplifies and reformats error messages into more
> manageable information. See http://www.bdsoft.com/tools/stlfilt.html.
>
> Jeff



I have looked at the gstlfilt package at:

http://www.bdsoft.com/dist/gstlfilt.tar

but I use CMake to build my application and therefore I don't specify the g++ call anywhere. As I
understand http://www.bdsoft.com/dist/gstlfilt.tar is a script that replaces make.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 9.3 How can I get better error messages from a CGI program? PerlFAQ Server Perl Misc 0 04-03-2011 04:00 AM
using std::map in a template class, getting LNK2019 link error when creating an object from this template class girays C++ 1 01-20-2007 09:47 PM
Better Java error messages DJ Majestik Java 12 06-15-2005 07:37 PM
Build a Better Blair (like Build a Better Bush, only better) Kenny Computer Support 0 05-06-2005 04:50 AM
Compiler error occurred when try to use a flexible template expression in preprocessor definesCompiler error occurred when try to use a flexible template expression in preprocessor defines snnn C++ 6 03-14-2005 04:09 PM



Advertisments