Compiling a mixed D and C++ project?

Manu turkeyman at gmail.com
Mon Sep 2 19:22:01 UTC 2019


On Mon., 2 Sep. 2019, 11:10 am Kyle De'Vir via Digitalmars-d, <
digitalmars-d at puremagic.com> wrote:

> On Monday, 2 September 2019 at 18:01:20 UTC, Kyle De'Vir wrote:
> > On Monday, 2 September 2019 at 18:00:04 UTC, Eduard Staniloiu
> > wrote:
> >>
> >> You could also try to compile the D code into an object and
> >> link with libdruntime and libphobos, using g++ or what C++
> >> compiler you are using
> >
> > Thanks for the suggestion. Will give this a try.
>
> Yeah, made no difference. It compiles, but running yields a
> segfault.
>

You'll need to give us more information... What is the segfault? Can you
show the callstack? (Build the C++ and D code with debug info `-g`)

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20190902/406d04d0/attachment.htm>


More information about the Digitalmars-d mailing list