On Wednesday, 15 June 2022 at 17:37:32 UTC, Templated Person wrote:
It there any resources on how to build D static (`.lib` / `.a`) and dynamic libraries (`.dll` / `.so`), and then use them from C?

Do I need to link and initialize phobos somehow? What if I don't want to use the D runtime? What happens with module level `this()` and `~this()`? Is there a comprehensive guide on how to do this stuff?


Check:

https://code.dlang.org/packages/autowrap

And examples such as c#, Python here:

https://github.com/symmetryinvestments/autowrap/tree/master/examples


Reply via email to