Can't you call it directly?

extern(C)
{
   int add (int a, int b)';
}

// ...

auto ret = add(123, 456);



LMB




On Wed, Jul 30, 2014 at 2:55 PM, seany via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:


Can you post the signatures of some of the C functions you're trying to
interface with?

let us take a simple function :

int add (int a, int b)