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.
  • Easy way for FFI Maximilian Naderer via Digitalmars-d-learn
    • Re: Easy wa... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Eas... Maximilian Naderer via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to