www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Compiling dmd -m64 on windows?

reply Tofu Ninja <emmons0 purdue.edu> writes:
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
Jan 29 2016
parent reply Tofu Ninja <emmons0 purdue.edu> writes:
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
Jan 29 2016
parent Adam D. Ruppe <destructionator gmail.com> writes:
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.
Jan 29 2016