DUB fails to build a dynamic library on Linux

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Dec 14 08:35:07 PST 2014


On Sun, 14 Dec 2014 16:24:13 +0000
Gabor Mezo via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Sunday, 14 December 2014 at 16:06:25 UTC, Martin Nowak wrote:
> > On 12/14/2014 03:50 PM, Gabor Mezo wrote:
> >> Hello,
> >>
> >> I've created a simple db dynamic lib project.
> >
> > https://github.com/D-Programming-Language/dub/issues/352
> 
> Thanks,
> 
> I've did this, it finally build, but something is still not good.
> 
> If I call externals from another application, and my D code 
> allocates anything on heap, the calling process crashes with 
> SIGSEV.
did you called `rt_init()` for your dynamic library? you have to do
that in the calling process. and don't forget to call `rt_term()` on
exiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141214/f5a3cee1/attachment.sig>


More information about the Digitalmars-d mailing list