Quick C bindings

bachmeier no at spam.net
Fri Sep 28 21:42:25 UTC 2018


On Friday, 28 September 2018 at 16:39:14 UTC, Márcio Martins 
wrote:
> Hi y'all!
>
> If you'd be so kind and help me out here with a few 
> questions/opinions:
>
> I would like to generate decent D bindings for 
> https://github.com/libuv/libuv with as little pain as possible.
>
> What are you guys using these days to generate bindings? I 
> remember trying Dstep a few years ago, but it didn't work very 
> well for me at the time. What's new in this regard? I've been 
> using the ones in dlang.org but have run into some issues, and 
> would like to include bindings as part of my project, if it's 
> not too painful.
>
> What is the state of shared libraries on the various 
> platforms/compilers? I remember they were not supported 
> everywhere and by all compilers, as this been addressed?

If they're pure C, you can use dpp:
https://github.com/atilaneves/dpp

Even if you want to work with the bindings, not just call the C 
functions, you can use the intermediate files that dpp creates. 
It works with pretty much everything I've thrown at it.


More information about the Digitalmars-d mailing list