Cannot compile C file using ImportC

rempas rempas at tutanota.com
Wed Nov 10 06:31:32 UTC 2021


On Tuesday, 9 November 2021 at 19:34:44 UTC, Stefan Koch wrote:
>
> What's happening here is that dmd seems to see `free` as 
> function rather than a pointer to a function.
> changing `static void* (*ppmalloc)(size_t) = malloc;`
> to `static void* (*ppmalloc)(size_t) = &malloc;`
>
> may solve your issue.

Thanks for the answer but this seems to create even more bugs


More information about the Digitalmars-d-learn mailing list