How to expand C ++ name in clang (or gcc)?

I am trying to write a quick and dirty daemon for clang. I found a piece of code that uses abi::__cxa_demangle , but I cannot figure out which header it requires. The obvious choice is ABI.h , but:

 demangle.cpp:2:10: fatal error: 'ABI.h' file not found #include <ABI.h> ^ 

What do I need to use abi::__cxa_demangle ?

+4
source share
2 answers

Include cxxabi.h . On Ubuntu 13, this header is in /usr/include/c++/4.x , where x is a small version of gcc.

+6
source

Turn on cxxabi.h, but for clang on Ubuntu you need to install the libC ++ abi-dev package.

+1
source

All Articles