can't run D app on VS 2019

Rainer Schuetze r.sagitario at gmx.de
Thu Feb 27 18:03:30 UTC 2020



On 27/02/2020 12:29, Greatsam4aure wrote:
> I have install Vs 2019 and install the C++ package together with
> Visual-D bundle with DMD and LDC. But by project refuse to run
> 
> ------ Build started: Project: DLangOne, Configuration: Debug Win32 ------
> Building Win32\Debug\DLangOne.exe...
> LINK : fatal error LNK1181: cannot open input file 'user32.lib'
> Building Win32\Debug\DLangOne.exe failed!
> Details saved as
> "file://C:\Users\great\source\repos\DLangOne\Win32\Debug\DLangOne.buildlog.html"
> 
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
> 

Did you also install the Windows SDK? According to your build log, I
would expect user32.lib to be in folder "c:\Program Files (x86)\Windows
Kits\10\Lib\10.0.18362.0\um\x86", but it is not listed on the command line.

If it exists, then maybe auto-detection didn't work or has old settings.
Try the "Reset Settings..." on the global Visual D option page or
manually add the library search path in the DMD directories->Win32-COFF tab.




More information about the Digitalmars-d-learn mailing list