Consuming D libraries from other languages
mw
mingwu at gmail.com
Thu Jun 16 00:46:40 UTC 2022
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
More information about the Digitalmars-d-learn
mailing list