Problem using shared D library from C shared library

Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 6 20:37:39 PDT 2016


On Thursday, 7 April 2016 at 03:19:58 UTC, rikki cattermole wrote:
> On 07/04/2016 3:18 PM, Yuxuan Shui wrote:
>> On Thursday, 7 April 2016 at 02:01:31 UTC, Mike Parker wrote:
>>> [...]
>>
>> static this/static ~this should work, right?
>
> They execute when the runtime is started.

So now I add call rt_init in the C shared library. Now the D 
library no longer gets SIGSEGV, but throws no memory exception 
when it tries to allocate.



More information about the Digitalmars-d-learn mailing list