/
linking in windows 64bit

linking in windows 64bit

With Visual Studio 2017 Enterprise installed (with C++ support), link.exe is located in such and such a place, so in sc.ini, in Environment64, I set

LINKCMD=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\link.exe

(this could be %VCINSTALLDIR%\Tools\MSVC\14.10.25017\bin\HostX64\x64\link.exe if you were in developer console. but I like powershell.)

then dmd gives me

LINK : fatal error LNK1104: cannot open file 'libcmt.lib'

which lives in such and such a place, so in sc.ini, in Environment64, I set

LIB="%@P%\..\lib64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\lib\x64"

then dmd gives me

LINK : fatal error LNK1181: cannot open input file 'legacy_stdio_definitions.lib'

which lives in $AbovePath, and also $AbovePath\store so I set 

LIB="%@P%\..\lib64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\lib\x64\store"

and no difference.

Related content

The windows builder
The windows builder
More like this
threading
threading
More like this
entry points from python into pyd
entry points from python into pyd
More like this
Generating ddox documentation
Generating ddox documentation
More like this