Using C header libs with importC
Dennis
dkorpel at gmail.com
Mon Jan 8 23:00:02 UTC 2024
On Monday, 8 January 2024 at 21:56:10 UTC, Renato wrote:
> but I tried exactly that! Which gives a seg fault.
Looks like there's a bug with the -H switch:
https://issues.dlang.org/show_bug.cgi?id=24326
But that shouldn't be necessary, you should just be able to
import the c file.
> I also tried just importing this little C file, but then no
> symbols from the h file are found at all. Kind of interesting,
> as if I just write the code using the library in the C file
> itself, that works fine.
That's weird, I'll see if I can reproduce this.
More information about the Digitalmars-d-learn
mailing list