Bind C++ class to DLang : undefined reference to `Canvas::Foo()'
zoujiaqing
zoujiaqing at gmail.com
Mon Jul 13 16:17:55 UTC 2020
On Monday, 13 July 2020 at 12:57:52 UTC, Adam D. Ruppe wrote:
> On Monday, 13 July 2020 at 09:34:35 UTC, zoujiaqing wrote:
>> # dmd source/main.d Canvas.o -L-lstdc++ && ./main
>> [1] 49078 segmentation fault ./main
>
> On my computer I got this warning out of the compiler:
>
> libstdc++ std::__cxx11::basic_string is not yet supported; the
> struct contains an interior pointer which breaks D move
> semantics!
>
>
> sounds like it might be a known limitation.
Thanks Adam, but D link to C++ very hard?
More information about the Digitalmars-d-learn
mailing list