Using glibc headers with ImportC

qua quanrong1 at 1mailbox1.org1removethe1s
Sun Nov 13 09:15:39 UTC 2022


On Saturday, 12 November 2022 at 14:14:06 UTC, Adam D Ruppe wrote:
> On Saturday, 12 November 2022 at 13:46:27 UTC, qua wrote:
>> This is supposed to work, right?
>
> No, it isn't. And it probably never will.
>
> importC looks for a .c file in the current directory. It is 
> that .c file's responsibility to #include whatever .h files you 
> want.

It seems that it will be now :)

https://issues.dlang.org/show_bug.cgi?id=23479
https://github.com/dlang/dmd/pull/14636

I agree it was unexpected that it didn't, at least for newcomers.


More information about the Digitalmars-d-learn mailing list