Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

New Developer
Posts: 50
Registered: ‎01-22-2009
My Device: Z10
My Carrier: Rogers

C++ typename demangling with Dinkumware libs

[ Edited ]

How does one demangle type_info.name() type names on BB 10 Native?  I have noticed that the default runtime library linkage is to the Dinkumware C++ lib, rather than GCC's libstdc++.  With libstdc++ I am able to use the abi::__cxa_demangle call to do the job, but on Dinkumware I have not been able to find a solution.  


[Edit: actually __cxa_demangle works just fine (there was just a bug in the code calling it).  The challenge for me was getting access to __cxa_demangle without causing a clash between the two standard libs (Dinkum and GNU).  I worked around this by actually building cp-demangle.c into my project.  Seems to work, anyway.]