Cannot build HelloWorld in VisualD with VS2017

Domain via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Wed Mar 22 01:33:26 PDT 2017


Default console application template.

Detail log:

Command Line

set PATH=C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;.\windows\bin;%PATH%
dmd -g -debug -X -Xf"Win32\Debug\hellod.json" 
-deps="Win32\Debug\hellod.dep" -c -of"Win32\Debug\hellod.obj" 
main.d
if errorlevel 1 goto reportError

set LIB=
echo. > 
C:\Users\Main\DOCUME~1\VIBB41~1\Projects\hellod\hellod\Win32\Debug\HELLOD~1.LNK
echo 
"Win32\Debug\hellod.obj","Win32\Debug\hellod.exe","Win32\Debug\hellod.map",user32.lib+ >> C:\Users\Main\DOCUME~1\VIBB41~1\Projects\hellod\hellod\Win32\Debug\HELLOD~1.LNK
echo kernel32.lib/NOMAP/CO/NOI/DELEXE >> 
C:\Users\Main\DOCUME~1\VIBB41~1\Projects\hellod\hellod\Win32\Debug\HELLOD~1.LNK

"C:\Program Files (x86)\VisualD\pipedmd.exe" -deps 
Win32\Debug\hellod.lnkdep link.exe 
@C:\Users\Main\DOCUME~1\VIBB41~1\Projects\hellod\hellod\Win32\Debug\HELLOD~1.LNK
if errorlevel 1 goto reportError
if not exist "Win32\Debug\hellod.exe" (echo 
"Win32\Debug\hellod.exe" not created! && goto reportError)

goto noError

:reportError
echo Building Win32\Debug\hellod.exe failed!

:noError

Output

Microsoft (R) Incremental Linker Version 14.10.25017.0
Copyright (C) Microsoft Corporation.  All rights reserved.

"Win32\Debug\hellod.obj,Win32\Debug\hellod.exe,Win32\Debug\hellod.map,user32.lib+"
kernel32.lib/NOMAP/CO/NOI/DELEXE
LINK : fatal error LNK1181: 
无法打开输入文件“Win32\Debug\hellod.obj,Win32\Debug\hellod.exe,Win32\Debug\hellod.map,user32.lib+”
Building Win32\Debug\hellod.exe failed!


The Chinese means "Cannot open input files"


More information about the Digitalmars-d-ide mailing list