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.
rikki cattermole via Digitalmars-d-learn Sat, 27 Jun 2020 22:15:39 -0700
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.