Using C header libs with importC

jmh530 john.michael.hall at gmail.com
Tue Jan 9 15:14:06 UTC 2024


On Monday, 8 January 2024 at 21:56:10 UTC, Renato wrote:
> [snip]
>
>> Importing .h files from d files isn't supported yet because of 
>> a dispute with the lookup priority:
>>
>> https://issues.dlang.org/show_bug.cgi?id=23479
>> https://issues.dlang.org/show_bug.cgi?id=23547
>
> Ah, too bad. Anyway, I was just playing around... disappointing 
> that it doesn't work but I don't really need this for now.

Disappointing I know, but there is the workaround of creating a C 
file and included the h file in it. Not elegant though.


More information about the Digitalmars-d-learn mailing list