Go back to the work directory, and copy the path to it from the address bar.

Navigate to C:\D\dmd2\windows\bin, and open sc.ini in Notepad.

Find the line starting with DFLAGS=

At the end of the line, type a space, then "-I, then paste the path copied above, then type " to close the quotes.

Example correct sc.ini

Save and close the file.

You will also need to download the SDL2 DLL (you'll need the Runtime binary for 32-bit Windows). Place the DLL in the folder you created.

You should now be able to compile and run the PewPew demo by running the following command from the work directory:

$ rdmd ae/demo/pewpew/pewpew

For improved performance, you can create and run a release build with the command:

$ rdmd -O -inline -release ae/demo/pewpew/pewpew

Below are instructions for setting up an editor or IDE, for more comfortable development.

Geany

There are many editors and IDEs supporting D. This page describes setting up Geany, but there are many others available. If you're feeling adventurous, you can try experimenting with some of the editors and IDEs on this page.