To resolve the problem (unresolved _deh_beg/_deh_end when linking), put the 'main' declaration into the D library. As below void main(string[]) { }