Solution: pragma(lib, "D:\\D\\dmd2\\windows\\lib\\phobos.lib"); I have to link the phobos lib by myself. o.O