This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC to open the C++ demangle API?
On Mon, Mar 04, 2002 at 10:48:03AM +0000, Andrew Marlow wrote:
> There does not appear to be a public API for demangling C++ symbol
> names with the GNU C++ compiler. The code is there in binutils because
> c++filt uses it. However, the API has not been 'opened'.
What do you mean by this exactly ?
> Any ideas why
> this is (other than it being non-portable) ?
apparently any tool wanting any features from binutils has to include
the whole necessary source itself. That means you have to ship
libiberty. And in my case, libbfd as well (!)
Of course you could just link to the platform libiberty and use
cplus_demangle as usual there ... (but this is not "allowed")
> the GNU C++ compiler environment opened access to the demangling
Also check out Carlo Woods' implementation: http://libcw.sf.net/
regards
john
--
I am a complete moron for forgetting about endianness. May I be
forever marked as such.