Thread overview | |||||
---|---|---|---|---|---|
|
February 27, 2020 can't run D app on VS 2019 | ||||
---|---|---|---|---|
| ||||
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 ========== Build Log Building Win32\Debug\DLangOne.exe Command Line set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE;C:\Program Files (x86)\Windows Kits\10\bin;C:\D\dmd-2.090.1\windows\bin;%PATH% set DMD_LIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\lib\x86;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x86 set VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\ set VCTOOLSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ set VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\ 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 "C:\Program Files (x86)\VisualD\pipedmd.exe" -deps Win32\Debug\DLangOne.dep dmd -m32mscoff -g -gf -debug -X -Xf"Win32\Debug\DLangOne.json" -c -of"Win32\Debug\DLangOne.obj" DLangOne.d if %errorlevel% neq 0 goto reportError set LIB=C:\D\dmd-2.090.1\windows\bin\..\lib32mscoff echo. > C:\Users\great\source\repos\DLangOne\Win32\Debug\DLangOne.link.rsp echo "Win32\Debug\DLangOne.obj" /OUT:"Win32\Debug\DLangOne.exe" user32.lib >> C:\Users\great\source\repos\DLangOne\Win32\Debug\DLangOne.link.rsp echo kernel32.lib >> C:\Users\great\source\repos\DLangOne\Win32\Debug\DLangOne.link.rsp 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" /DEBUG /PDB:"Win32\Debug\DLangOne.pdb" /INCREMENTAL:NO /NOLOGO /noopttls /NODEFAULTLIB:libcmt msvcrt.lib /SUBSYSTEM:CONSOLE >> C:\Users\great\source\repos\DLangOne\Win32\Debug\DLangOne.link.rsp "C:\Program Files (x86)\VisualD\mb2utf16.exe" C:\Users\great\source\repos\DLangOne\Win32\Debug\DLangOne.link.rsp "C:\Program Files (x86)\VisualD\pipedmd.exe" -msmode -deps Win32\Debug\DLangOne.lnkdep "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\link.exe" @C:\Users\great\source\repos\DLangOne\Win32\Debug\DLangOne.link.rsp if %errorlevel% neq 0 goto reportError if not exist "Win32\Debug\DLangOne.exe" (echo "Win32\Debug\DLangOne.exe" not created! && goto reportError) goto noError :reportError echo Building Win32\Debug\DLangOne.exe failed! :noError Output LINK : fatal error LNK1181: cannot open input file 'user32.lib' Building Win32\Debug\DLangOne.exe failed! I will appreciate any help. This is my second time of seeking for help in this matter |
February 27, 2020 Re: can't run D app on VS 2019 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Greatsam4aure | 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. |
February 29, 2020 Re: can't run D app on VS 2019 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Greatsam4aure | On Thursday, 27 February 2020 at 11:29:01 UTC, 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
>
> [...]
user32.lib - this file in C:\D\dmd2\windows ( on my PC, on you it other )
LINK : fatal error LNK1181 - is linker error.
May be need check settings for path to DMD windows .lib files.
LINK want user32.lib
|
Copyright © 1999-2021 by the D Language Foundation