Eh, you can simplify it a lot by just writing your own C main (legal with or without betterC btw) --- import core.stdc.stdio; extern(C) int main(int argc, char** argv) { printf("hello world, %s\n", argc > 1 ? argv[1] : "user"); return 0; } --- that should work with any compiler, with or without -betterC.