On Tuesday, 2 August 2016 at 17:23:57 UTC, Adam D. Ruppe wrote: > _d_run_main is extern(C), not just extern. Then your code > should work. Also, you don't actually have to rt_init and rt_term if you do _d_run_main because it does it for you...