On Friday, 7 March 2014 at 18:07:00 UTC, Steve Teale wrote:
On Friday, 7 March 2014 at 16:59:30 UTC, Bauss wrote:
What arguments would I do to compile a d project through command line. Been trying a few things, but can't get it working.

I always get "Error: cannot read file x"

Read around the net and it most says it's an installation error and that reinstalling should fix it, but it works when compiling through a few IDE's so I assume it's mistake of my own.

Tried like this:
-c c:\testproject\main.d -m32 -ofc:\testd\out.exe


Take a step back. Your file is in folder c:\testproject, so do

cd \testproject
dmd main.d

Then look for a file called main.exe in the \testproject folder. I may be off the mark, since I have not used dmd under Windows for quite a long time, but try it.

Well trying what you all suggest still no results.

http://prntscr.com/2yqfhi

Reply via email to