Interfacing D to existing C++ code

Walter Bright via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Jan 29 14:44:36 PST 2015


On 1/29/2015 1:58 PM, Guillaume Chatelet wrote:
> I pushed some code for string here (nothing fancy yet)
> https://github.com/gchatelet/dlang_cpp_std/blob/master/cpp_std.d
>
> The linker complains about missing
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >::__ctor()
> where it should be
> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>  >::basic_string()
>
> So constructors and destructors are mangled 'a la D' instead of the C++ way.

Please post this to bugzilla.


More information about the Digitalmars-d-announce mailing list