New construct to solve the problem! extern(C++, nsin, nsout) The nsin is the C++ namespace to import from and nsout is the D namespace that the symbol ends up being in. You can default nsout to be local, global, or whatever one wants.