http://www.bdsoft.com/tools/stlfilt.html
这个工具不错,可以对STL出错信息进行过滤处理,让信息容易看懂!
Linux 用法:
1. 下载
gstlfilt.tar
2. gfilt g++ test.cpp
…
STLFilt:
An STL Error Message Decryptor for C++
Open Source Freeware by Leor Zolman, Supporting:
STLFilt-ing is now selectable on both the
Comeau
and
Dinkumwar
e
online compiler pages!
Now compatible with ALL Visual Studio 200x IDEs !!!
Participate in the
STLFilt Forum
on the new
BD Software Message Board
!
STLFilt simplifies and/or reformats long-winded C++ error and warning messages, with a focus on STL-related diagnostics (and for MSVC 6, it fully eliminates C4786 warnings and their detritus). The result renders many of even the most cryptic diagnostics comprehensible. Here is the
rationale
.
The active ingredient in each distribution is a Perl script, so you’ll need a Perl interpreter installed;
ActivePerl
works best, and it’s free.
The downloads follow, organized by platform:
-
Microsoft Visual C++
6/7/8/9:
stlfilt.zip
(484K, updated
10/22/2007
). Includes the “Proxy” CL compiler, multi-platform-aware STLTask tray-resident control utility (
screen shot
), and support for long type-name wrapping (see the gcc section below). Demo runs:
VC6
VC7+
long type-names
. Supports both the IDE
and
command line environments, in conjunction with any or all of the following C++ libraries:-
Native MSVC 6
-
Native MSVC 7.x, 8.x, 9.x
(IDE-based Decryption within VS2005/2008 now
WORKS
. See README-VC.txt)
-
STLport
4.x
-
Dinkum 3.08
-
Dinkum Unabridged Library
-
-
gcc
2.9x/3.x/4.x (tested under MinGW up to
4.1.1
, and under TDM gcc