Easy way for FFI

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Sep 22 21:35:58 UTC 2024


There are a number of solutions for C bindings creation.

Try ImportC its built into the compiler.

You can use the .di generator to emit a D file for further use and 
manual cleanup.

https://dlang.org/spec/importc.html

It does depend upon the system toolchain, so you'll want MSVC installed 
if you use Windows.


More information about the Digitalmars-d-learn mailing list