Using C++ Classes From D: dmd cannot link, while ldc segfault

mw mingwu at gmail.com
Mon Jun 19 05:44:51 UTC 2023


On Monday, 19 June 2023 at 05:39:51 UTC, mw wrote:
> Then it will be very tedious, esp. for such library class 
> std::list.
>
> Is there a tool that can automate this?


A related question: basically I want to pass an array of objects 
from D side to the Cpp side, is there any example showing how to 
do this?

On this page

https://dlang.org/spec/cpp_interface.html#cpp-templates

I did not find any information about passing array (containers) 
between D and Cpp.

Thanks.


More information about the Digitalmars-d-learn mailing list