can't run D app on VS 2019

Greatsam4aure greatsam4sure at yahoo.com
Thu Feb 27 11:29:01 UTC 2020


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


More information about the Digitalmars-d-learn mailing list