This might be stupidiest and newbie's question, but how do I actually compile D project with DMD on windows?
I tried these commands:
dmd *dmd *.dcd .. && dmd {DirectoryName}dmd file1.d file2.d
But neither of them compile the project to executable.
I want to produce .exe file out of that project, but it seems I can't. I can only compile one file in the project or compile multiple, but only .obj file, not .exe...
DUB is the easiest for beginners:
You can copy all your d files to your-project\source\ directory and let dub do all the hard work.
dub initdoesn't work from git bash for some reason, as it waits for input on CLI. So you need todub initfrom cmd.exe.dub runshould work fine from git bash.If you run it from git bash, press enter key 7 times, all the defaults will be accepted and the project will be created.
Related issue in DUB