On 12/07/2020 23:35, Rainer Schuetze wrote:
> 
> 
> On 12/07/2020 11:11, greatsam4sure wrote:
> [...]
>> set WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
>> set WindowsSdkVersion=10.0.18362.0
>> set UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
>> set UCRTVersion=10.0.18362.0
> [...]
>> echo legacy_stdio_definitions.lib /LIBPATH:"C:\Program Files
>> (x86)\Microsoft Visual
>> Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86"
>> /LIBPATH:"C:\Program Files (x86)\Windows
>> Kits\10\Lib\10.0.18362.0\ucrt\x86"
> [...]
>>
>> LINK : fatal error LNK1181: cannot open input file 'user32.lib'
>> Building Win32\Debug\WindowsApp2.exe failed!
> 
> 
> I suspect you don't have the Windows SDK installed with Visual Studio.
> user32.lib is usually found in "C:\Program Files (x86)\Windows
> Kits\10\lib\10.0.18362.0\um\x86", but that path is not passed on the
> command line with /LIBPATH.
> 

On second thought: if you installed the SDK after Visual D, the settings
in "Tools -> Options -> Projects and Solutions -> Visual D Settings ->
DMD directories -> Win32 COFF32 -> Library Paths" might not reflect that
(it should contain something like
$(WindowsSdkDir)lib\$(WindowsSdkVersion)\um\x86).

You can also click "Reset Settings" on the Visual D settings page to
correct that.

Reply via email to