On Tuesday, 2 August 2016 at 17:04:08 UTC, Rufus Smith wrote:
It doesn't seem to be that easy!
_d_run_main is extern(C), not just extern. Then your code should work.
You can also simplify more:
---
import std.stdio;
import core.runtime;
extern(C) int main() {
rt_init();
writeln("Hello from D");
rt_term();
return 0;
}
---
