On 2020-07-27 03:03, Paul Backus wrote:

extern(C) void hello()
{
     import std.stdio: writeln;
     writeln("Hello from D!");
}

The D runtime needs to be initialized first [1]. Then it should be terminated as well [2].

[1] https://dlang.org/phobos/core_runtime.html#.rt_init
[2] https://dlang.org/phobos/core_runtime.html#.rt_term

--
/Jacob Carlborg

Reply via email to