Compiling D through command line

Bauss streetzproductionz at hotmail.com
Fri Mar 7 10:26:32 PST 2014


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


More information about the Digitalmars-d-learn mailing list