----- I apologize for it all, my bad. It wasn't even a problem with the compiler nor arguments. I thought I had file extensions to show, so my main.d was actually main.d.txt Explains why it couldn't read the file. Fixed and got everything compiled fine.