Thread overview
Compiling dmd -m64 on windows?
Jan 29, 2016
Tofu Ninja
Jan 29, 2016
Tofu Ninja
Jan 29, 2016
Adam D. Ruppe
January 29, 2016
For some reason it complains that link.exe is missing. Anyone know what's up?

>dmd test.d

>dmd test.d -m64
Can't run '\bin\link.exe', check PATH
January 29, 2016
On Friday, 29 January 2016 at 18:26:15 UTC, Tofu Ninja wrote:
> For some reason it complains that link.exe is missing. Anyone know what's up?
>
>>dmd test.d
>
>>dmd test.d -m64
> Can't run '\bin\link.exe', check PATH

link.exe is definitely on PATH...

>where link.exe
C:\D\dmd2\windows\bin\link.exe
January 29, 2016
On Friday, 29 January 2016 at 18:27:50 UTC, Tofu Ninja wrote:
>>where link.exe
> C:\D\dmd2\windows\bin\link.exe

-m64 needs a different link.exe. It uses the Microsoft linker so you've gotta be sure that one is installed and the path of the VS bin is in there too.

The dmd install exe will do all this for you, but then you need to remember to run the "D2 64 bit command prompt" so the PATH is set rather than just any cmd.