Question about calling D method from C/C++

Eric eric at makechip.com
Mon Jun 3 08:42:15 PDT 2013


>> This will crash when the line "X x = new X()" is executed.
>> Is this to be expected?
>
> It seems you haven't started the runtime.
>
> Use this function:
>
> https://github.com/D-Programming-Language/druntime/blob/master/src/rt/dmain2.d#L281


Thanks.  That fixed my problem.  This is my first D program,
so I wouldn't have figured it out on my own...

-Eric


More information about the Digitalmars-d-learn mailing list