Translating C headers to D: How do I compile it?

rikki cattermole rikki at cattermole.co.nz
Sun Jun 28 05:10:30 UTC 2020


On 28/06/2020 4:59 PM, Kirill wrote:
> module something;
extern(C)
> int add(int a, int b);




Compile as static library some.c, add to command line of dmd.

Should be this simple more or less, depending on compilers and target 
involved.



More information about the Digitalmars-d-learn mailing list