How to use std. packages in so files written in dlang

grampus via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 11 18:36:34 PDT 2016


On Friday, 12 August 2016 at 01:09:47 UTC, ketmar wrote:
> On Friday, 12 August 2016 at 00:57:42 UTC, grampus wrote:
>
> it's 'cause you didn't initialized druntime. you have to use 
> dlsym to get "rt_init" function and call it right after loading 
> your .so, but before calling any other API from it.
>
> also, note that druntime is using SIGUSR1 and SIGUSR2 for it's 
> internal housekeeping, so don't use this signals in your C++ 
> code.

Thank you for the quick reply.
Do you mean that I have to do some changes on the C side?
I can use dlang in this existing project as long as nothing can 
be changed on the C side.
Do you think I can use dlang in our case?

Thank you


More information about the Digitalmars-d-learn mailing list