Linking D code into existing C programs
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 27 05:58:36 PDT 2016
On 9/27/16 4:12 AM, Walter Bright wrote:
> On 9/27/2016 12:03 AM, Jacob Carlborg wrote:
>> You're not linking druntime.
> That's one issue. The other one is druntime needs to be initialized, and
> calling a random D function won't do that.
Does it? your function seems to not require any druntime features.
I would say -betterC is the way to fix this, as conservatively not
emitting druntime requirements is probably a lot more involved than a
directive from the build that no druntime is required.
More information about the Digitalmars-d