LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'
kinke
noone at nowhere.com
Tue Jan 2 18:21:01 UTC 2018
On Tuesday, 2 January 2018 at 16:36:23 UTC, Vino wrote:
> Hi,
>
> Tried to install LDC on Windows 7, but getting the below
> errors while compiling
>
> Installed s/w
> .Net 4.7.1
> .Net Core Runtime 2.0.4
> .Net SDK 2.1.3
> Windows SDK 10.0.16299.15
>
> Environment Variables Set:
>
> NETFXSDKDir = C:\Program Files (x86)\Windows
> Kits\10\Lib\10.0.16299.0\um\x86(System/User)
> LDC_VSDIR = C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community(System)
>
> Error:
> C:\Users\bheev1\Desktop\Current\Script\Complied-64>ldc2
> -fsanitize=address -g nscleaner.d
> LINK : fatal error LNK1181: cannot open input file
> 'kernel32.lib'
> Error: C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\link.exe failed with status: 1181
>
> From,
> Vino.B
Hi, LDC_VSDIR should be fine, but NETFXSDKDir may interfere as
you're using the 64-bit linker (i.e., targeting Win64) and
specify the 32-bit lib directory at the same time. So try with
`-m32` or fixing/getting rid of NETFXSDKDir.
More information about the digitalmars-d-ldc
mailing list