Haskell calling D code through the FFI
Jon via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 4 15:17:35 PDT 2014
Yes, thank you. That is exactly what I did.
On Monday, 4 August 2014 at 21:48:40 UTC, safety0ff wrote:
> On Monday, 4 August 2014 at 21:35:21 UTC, Jon wrote:
>> I get Error: core.runtime.rt_init is private. And Error:
>> core.runtime.init is not accessible.
>>
>
> I would add them to the header and Haskell wrapper
> (FunctionsInD.h and ToD.hs.)
> The signatures are:
> int rt_init();
> int rt_term();
>
> When it is linked it will find the symbols in druntime.
More information about the Digitalmars-d-learn
mailing list