The cppfilt command converts between mangled C++ names and demangled names. You can run cppfilt from the VisualAge C++ command line window. It has two modes of operation:
The output from cppfilt is sent to the standard stream stdout. You should redirect stdout to a file to capture the output for reuse.
Running cppfilt in Text Mode
This diagram shows the syntax of the cppfilt
command in text mode:

The parameters to run cppfilt in text mode are:
/option
In text mode you can specify any of the following options:
| Option | Description |
|---|---|
| /C | Demangle stand-alone class names. |
| /H or /? | Display help for cppfilt. |
| /M | Produce symbol map. |
| /Q | Suppress display of logo. |
| /S | Demangle compiler-generated symbol names. |
| /T | Produce side-by-side demangling. |
|
Specify width of field for demangled names. |
filename
Specify the name of the input ASCII text file. If it does
not reside in the current directory, include the relative or
absolute path. If you do not provide a file name, cppfilt
reads from the standard
stream stdin.
Running cppfilt in Binary Mode
This diagram shows the syntax of the cppfilt
command in binary mode:

The parameters to run cppfilt in binary mode are:
/option
In binary mode you can specify any of the following
options:
| Option | Description |
|---|---|
| /C | Demangle stand-alone class names. |
| /H or /? | Display help for cppfilt. |
| /N | Reference exported names by ordinal number. |
| /O[ord] | Generate ordinals after each demangled name. |
| /P | Include public symbols in output. |
| /Q | Suppress display of logo. |
| /R | Include referenced symbols in output. |
| /S | Demangle compiler-generated symbol names. |
| /U | Remove leading underscores from demangled names. |
| /X | Include exported symbols in output. |
| /Z | Suppress comments in the output. |
.obj-filename
.lib-filename
You must supply the name of the input file in binary mode.
If the file does not reside in the current directory, you can
include the relative or absolute path in the file name. The
cppfilt command also looks for libraries in the path stored in
the LIB environment variable.
Example Output from cppfilt in Binary Mode
![]()
Static and Dynamic
Link Libraries
Decorated and Mangled Names
![]()
Demangle C++ Names
Get Mangled Names for C++
Symbols
Redirect
Standard Streams
