When the C/C++ compiler gives me warnings or errors, its very hard to filter them. Is there some simple terminal program or script to highlight them?
Now they look like
lk@minetoo ~/proj/mgi2 $ make
g++ -lpthread -o mgi.r mgi.cpp
In file included from mgi.cpp:19:0:
paux.hpp:101:1: error: expected class-name before '{' token
paux.hpp:104:1: error: expected unqualified-id before '}' token
mgi.cpp: In constructor 'Server::Server()':
mgi.cpp:73:57: warning: deprecated conversion from string constant to 'char*'
mgi.cpp:78:84: warning: deprecated conversion from string constant to 'char*'
mgi.cpp: In member function 'int Server::run()':
mgi.cpp:84:62: warning: deprecated conversion from string constant to 'char*'
mgi.cpp:92:52: warning: deprecated conversion from string constant to 'char*'
make: *** [mgi] Error 1
I used
colorgccfor this. It works pretty well.