Undefined Reference calling D from C using static linking

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 23 13:20:59 PDT 2017


On 2017-03-23 13:26, Nicholas Wilson wrote:

> Getting dmd to do the linking should work.
> You may wish to see what mir (github.com/libmir) does to build in it's
> "Better C" mode, so i'm sure it is possible, I just don't know the
> incantations, sorry. Perhaps someone else can help.

As an ugly workaround, you can defined the "_d_dso_registry" symbol 
yourself. To be sure, it should match the signature in the runtime.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list