<div dir="ltr">Currently, for pre-2017, the root directory must be in the form <some path>/VC.  <div><br></div><div>Could you try renaming x86ret and <span style="font-size:12.8px">amd64ret to VC and try it again? e.g.:</span><div><span style="font-size:12.8px"><br></span></div><div><font face="monospace, monospace"><span style="font-size:12.8px">C:\Temp\binaries\x86ret\</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">bin\i386       ==> </span><span style="font-size:12.8px">C:\Temp\binaries\VC\</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">bin\i386</span><span style="font-size:12.8px"><br></span></font></div><div><font face="monospace, monospace"><span style="font-size:12.8px">C:\Temp\binaries\</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">amd64ret\bin\amd64    ==> </span><span style="font-size:12.8px">C:\Temp\binaries\VC</span><span style="font-size:12.8px">\bin\amd64</span></font><span style="font-size:12.8px"><br></span></div></div><div><font face="monospace, monospace"><span style="font-size:12.8px"><br></span></font></div><div><font face="monospace, monospace"><span style="font-size:12.8px"><br></span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 15, 2017 at 6:48 PM, Stephan T. Lavavej <span dir="ltr"><<a href="mailto:stl@exchange.microsoft.com" target="_blank">stl@exchange.microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here's how to repro my directory structure in a clean VM. (I have to run an installer to extract the WinSDK, but then I just copy its files around.) I could prepare similar instructions to gather this directory structure from a real installation of VS, for copying to a clean VM, if you would prefer that.<br>
<br>
1. Download (600 MB): <a href="https://www.nuget.org/api/v2/package/VisualCppTools.Community.D14Layout/14.10.25506" rel="noreferrer" target="_blank">https://www.nuget.org/api/v2/<wbr>package/VisualCppTools.<wbr>Community.D14Layout/14.10.<wbr>25506</a><br>
<br>
2. Rename visualcpptools.community.<wbr>d14layout.14.10.25506.nupkg to nuget.zip .<br>
<br>
3. Extract nuget.zip to C:\Temp , creating C:\Temp\nuget\lib\native\<wbr>branchinfo.txt (for example).<br>
<br>
4. In C:\Temp run:<br>
<br>
robocopy nuget\lib\native\bin binaries\x86ret\bin\i386<br>
robocopy nuget\lib\native\bin\1033 binaries\x86ret\bin\i386\1033 /s<br>
robocopy nuget\lib\native\bin\amd64 binaries\amd64ret\bin\amd64 /s<br>
robocopy nuget\lib\native\bin\x86_amd64 binaries\x86ret\bin\x86_amd64 /s<br>
robocopy nuget\lib\native\bin\amd64_x86 binaries\amd64ret\bin\amd64_<wbr>x86 /s<br>
robocopy nuget\lib\native\include binaries\x86ret\inc /s<br>
robocopy nuget\lib\native\include binaries\amd64ret\inc /s<br>
robocopy nuget\lib\native\lib binaries\x86ret\lib\i386<br>
robocopy nuget\lib\native\lib\amd64 binaries\amd64ret\lib\amd64 /s<br>
<br>
5. We need the WinSDK:<br>
<br>
<a href="https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk" rel="noreferrer" target="_blank">https://developer.microsoft.<wbr>com/en-us/windows/downloads/<wbr>windows-10-sdk</a><br>
"Download the .EXE"<br>
"Install ... to this computer" is fine, Next.<br>
Either Yes or No to anonymous usage data is fine, Next.<br>
If you accept the EULA, Accept.<br>
I'm too lazy to figure out the minimal set of features, so leave them all checked, Install.<br>
<br>
6. In C:\Temp run:<br>
<br>
robocopy "C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\<wbr>um" ExternalApis\Windows\10\sdk\<wbr>inc /s<br>
robocopy "C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\<wbr>shared" ExternalApis\Windows\10\sdk\<wbr>inc /s<br>
robocopy "C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\<wbr>ucrt" ExternalApis\UnifiedCRT\inc /s<br>
robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\<wbr>x86" ExternalApis\Windows\10\sdk\<wbr>lib\x86 /s<br>
robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\<wbr>x64" ExternalApis\Windows\10\sdk\<wbr>lib\x64 /s<br>
robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\<wbr>x86" ExternalApis\UnifiedCRT\lib\<wbr>i386 /s<br>
robocopy "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\<wbr>x64" ExternalApis\UnifiedCRT\lib\<wbr>amd64 /s<br>
<br>
7. Download LLVM-5.0.0-rc2-win64.exe and in C:\Temp use 7-Zip to extract it:<br>
<br>
7z x LLVM-5.0.0-rc2-win64.exe -x!Uninstall.exe -x!$PLUGINSDIR\* -oClangLLVM<br>
<br>
8. Now you can set up an x86 or an x64 command prompt (these are mutually exclusive options):<br>
<br>
title x86 Dev Build<br>
set PATH=C:\Temp\binaries\x86ret\<wbr>bin\i386;C:\Temp\ClangLLVM\<wbr>bin;%PATH%<br>
set INCLUDE=C:\Temp\binaries\<wbr>x86ret\inc;C:\Temp\<wbr>ExternalApis\Windows\10\sdk\<wbr>inc;C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
set LIB=C:\Temp\binaries\x86ret\<wbr>lib\i386;C:\Temp\ExternalApis\<wbr>Windows\10\sdk\lib\x86;C:\<wbr>Temp\ExternalApis\UnifiedCRT\<wbr>lib\i386<br>
<br>
OR:<br>
<br>
title x64 Dev Build<br>
set PATH=C:\Temp\binaries\<wbr>amd64ret\bin\amd64;C:\Temp\<wbr>ClangLLVM\bin;%PATH%<br>
set INCLUDE=C:\Temp\binaries\<wbr>amd64ret\inc;C:\Temp\<wbr>ExternalApis\Windows\10\sdk\<wbr>inc;C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
set LIB=C:\Temp\binaries\amd64ret\<wbr>lib\amd64;C:\Temp\<wbr>ExternalApis\Windows\10\sdk\<wbr>lib\x64;C:\Temp\ExternalApis\<wbr>UnifiedCRT\lib\amd64<br>
<br>
9. Let's try the "x86 Dev Build".<br>
<br>
NOTE: this VM is totally clean and doesn't have VS 2013 installed, so the behavior is a little different from my original repro (Clang can't find VS, instead of erroneously finding VS 2013), but the behavior is similarly undesirable.<br>
<br>
C:\Temp>echo %PATH%<br>
C:\Temp\binaries\x86ret\bin\<wbr>i386;C:\Temp\ClangLLVM\bin;C:\<wbr>Windows\system32;C:\Windows;C:<wbr>\Windows\System32\Wbem;C:\<wbr>Windows\System32\<wbr>WindowsPowerShell\v1.0\;C:\<wbr>Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\stl\AppData\<wbr>Local\Microsoft\WindowsApps;<br>
<br>
C:\Temp>echo %INCLUDE%<br>
C:\Temp\binaries\x86ret\inc;C:<wbr>\Temp\ExternalApis\Windows\10\<wbr>sdk\inc;C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
<br>
C:\Temp>echo %LIB%<br>
C:\Temp\binaries\x86ret\lib\<wbr>i386;C:\Temp\ExternalApis\<wbr>Windows\10\sdk\lib\x86;C:\<wbr>Temp\ExternalApis\UnifiedCRT\<wbr>lib\i386<br>
<span class=""><br>
C:\Temp>type meow.cpp<br>
#include <iostream><br>
int main() {<br>
#ifdef __clang__<br>
    std::cout << "I am Clang: " << __clang_version__ << "\n";<br>
#elif defined(_MSC_VER)<br>
    std::cout << "I am C1XX: " << _MSC_FULL_VER << "\n";<br>
#else<br>
    std::cout << "I am something else.\n";<br>
#endif<br>
</span>    std::cout << "And I am " << sizeof(void *) * 8 << "-bit.\n";<br>
}<br>
<br>
C:\Temp>where cl<br>
C:\Temp\binaries\x86ret\bin\<wbr>i386\cl.exe<br>
<br>
C:\Temp>where link<br>
C:\Temp\binaries\x86ret\bin\<wbr>i386\link.exe<br>
<span class=""><br>
C:\Temp>cl /EHsc /nologo /W4 /MT meow.cpp && meow<br>
meow.cpp<br>
</span>I am C1XX: 191125506<br>
And I am 32-bit.<br>
<br>
C:\Temp>where clang-cl<br>
C:\Temp\ClangLLVM\bin\clang-<wbr>cl.exe<br>
<span class=""><br>
C:\Temp>clang-cl -v -m32 /EHsc /nologo /W4 /MT meow.cpp && meow<br>
clang version 5.0.0 (tags/RELEASE_500/rc2)<br>
Target: i386-pc-windows-msvc<br>
Thread model: posix<br>
</span>InstalledDir: C:\Temp\ClangLLVM\bin<br>
clang-cl.exe: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>clang-cl.exe" -cc1 -triple i386-pc-windows-msvc18.0.0 -emit-obj -mrelax-all -mincremental-linker-<wbr>compatible -disable-free -main-file-name meow.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -D_MT -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc -v -dwarf-column-info -debugger-tuning=gdb -resource-dir "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0" -internal-isystem "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0\\include" -internal-isystem "C:\\Temp\\binaries\\x86ret\\<wbr>inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>Windows\\10\\sdk\\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>UnifiedCRT\\inc" -WCL4 -fdeprecated-macro -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120 -fms-extensions -fms-compatibility -fms-compatibility-version=18 -std=c++11 -fno-threadsafe-statics -fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-952e26.<wbr>obj" -x c++ meow.cpp<br>
<span class="">clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target x86_64-pc-windows-msvc<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
</span> C:\Temp\ClangLLVM\lib\clang\5.<wbr>0.0\include<br>
 C:\Temp\binaries\x86ret\inc<br>
 C:\Temp\ExternalApis\Windows\<wbr>10\sdk\inc<br>
 C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
<span class="">End of search list.<br>
In file included from meow.cpp:1:<br>
</span>In file included from C:\Temp\binaries\x86ret\inc\<wbr>iostream:6:<br>
In file included from C:\Temp\binaries\x86ret\inc\<wbr>istream:6:<br>
In file included from C:\Temp\binaries\x86ret\inc\<wbr>ostream:6:<br>
In file included from C:\Temp\binaries\x86ret\inc\<wbr>ios:6:<br>
In file included from C:\Temp\binaries\x86ret\inc\<wbr>xlocnum:7:<br>
In file included from C:\Temp\binaries\x86ret\inc\<wbr>cmath:617:<br>
In file included from C:\Temp\binaries\x86ret\inc\<wbr>xtgmath.h:9:<br>
C:\Temp\binaries\x86ret\inc\<wbr>xtr1common(204,22) :  error: use of undeclared identifier 'char16_t'<br>
        struct _Is_integral<char16_t><br>
                            ^<br>
[...more errors...]<br>
<br>
C:\Temp>clang-cl -v -m32 /EHsc /nologo /W4 /MT -fms-compatibility-version=19.<wbr>11.25506 meow.cpp && meow<br>
<span class="">clang version 5.0.0 (tags/RELEASE_500/rc2)<br>
Target: i386-pc-windows-msvc<br>
Thread model: posix<br>
</span>InstalledDir: C:\Temp\ClangLLVM\bin<br>
clang-cl.exe: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>clang-cl.exe" -cc1 -triple i386-pc-windows-msvc19.11.<wbr>25506 -emit-obj -mrelax-all -mincremental-linker-<wbr>compatible -disable-free -main-file-name meow.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -D_MT -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc -v -dwarf-column-info -debugger-tuning=gdb -resource-dir "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0" -internal-isystem "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0\\include" -internal-isystem "C:\\Temp\\binaries\\x86ret\\<wbr>inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>Windows\\10\\sdk\\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>UnifiedCRT\\inc" -WCL4 -fdeprecated-macro -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120 -fms-extensions -fms-compatibility -fms-compatibility-version=19.<wbr>11.25506 -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-8771d8.<wbr>obj" -x c++ meow.cpp<br>
<span class="">clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target x86_64-pc-windows-msvc<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
</span> C:\Temp\ClangLLVM\lib\clang\5.<wbr>0.0\include<br>
 C:\Temp\binaries\x86ret\inc<br>
 C:\Temp\ExternalApis\Windows\<wbr>10\sdk\inc<br>
 C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
End of search list.<br>
 "link.exe" -out:meow.exe -nologo "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-8771d8.<wbr>obj"<br>
<span class="">clang-cl.exe: error: unable to execute command: program not executable<br>
clang-cl.exe: error: linker command failed with exit code 1 (use -v to see invocation)<br>
<br>
</span>C:\Temp>clang-cl -v -m32 /EHsc /nologo /W4 /MT -fms-compatibility-version=19.<wbr>11.25506 -fuse-ld=lld-link meow.cpp && meow<br>
<span class="">clang version 5.0.0 (tags/RELEASE_500/rc2)<br>
Target: i386-pc-windows-msvc<br>
Thread model: posix<br>
</span>InstalledDir: C:\Temp\ClangLLVM\bin<br>
clang-cl.exe: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>clang-cl.exe" -cc1 -triple i386-pc-windows-msvc19.11.<wbr>25506 -emit-obj -mrelax-all -mincremental-linker-<wbr>compatible -disable-free -main-file-name meow.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -D_MT -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc -v -dwarf-column-info -debugger-tuning=gdb -resource-dir "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0" -internal-isystem "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0\\include" -internal-isystem "C:\\Temp\\binaries\\x86ret\\<wbr>inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>Windows\\10\\sdk\\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>UnifiedCRT\\inc" -WCL4 -fdeprecated-macro -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120 -fms-extensions -fms-compatibility -fms-compatibility-version=19.<wbr>11.25506 -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-67d57c.<wbr>obj" -x c++ meow.cpp<br>
<span class="">clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target x86_64-pc-windows-msvc<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
</span> C:\Temp\ClangLLVM\lib\clang\5.<wbr>0.0\include<br>
 C:\Temp\binaries\x86ret\inc<br>
 C:\Temp\ExternalApis\Windows\<wbr>10\sdk\inc<br>
 C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
End of search list.<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>lld-link" -out:meow.exe -nologo "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-67d57c.<wbr>obj"<br>
<span class="">I am Clang: 5.0.0 (tags/RELEASE_500/rc2)<br>
</span>And I am 32-bit.<br>
<br>
10. And the "x64 Dev Build":<br>
<br>
C:\Temp>echo %PATH%<br>
C:\Temp\binaries\amd64ret\bin\<wbr>amd64;C:\Temp\ClangLLVM\bin;C:<wbr>\Windows\system32;C:\Windows;<wbr>C:\Windows\System32\Wbem;C:\<wbr>Windows\System32\<wbr>WindowsPowerShell\v1.0\;C:\<wbr>Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\stl\AppData\<wbr>Local\Microsoft\WindowsApps;<br>
<br>
C:\Temp>echo %INCLUDE%<br>
C:\Temp\binaries\amd64ret\inc;<wbr>C:\Temp\ExternalApis\Windows\<wbr>10\sdk\inc;C:\Temp\<wbr>ExternalApis\UnifiedCRT\inc<br>
<br>
C:\Temp>echo %LIB%<br>
C:\Temp\binaries\amd64ret\lib\<wbr>amd64;C:\Temp\ExternalApis\<wbr>Windows\10\sdk\lib\x64;C:\<wbr>Temp\ExternalApis\UnifiedCRT\<wbr>lib\amd64<br>
<span class=""><br>
C:\Temp>type meow.cpp<br>
#include <iostream><br>
int main() {<br>
#ifdef __clang__<br>
    std::cout << "I am Clang: " << __clang_version__ << "\n";<br>
#elif defined(_MSC_VER)<br>
    std::cout << "I am C1XX: " << _MSC_FULL_VER << "\n";<br>
#else<br>
    std::cout << "I am something else.\n";<br>
#endif<br>
</span>    std::cout << "And I am " << sizeof(void *) * 8 << "-bit.\n";<br>
}<br>
<br>
C:\Temp>where cl<br>
C:\Temp\binaries\amd64ret\bin\<wbr>amd64\cl.exe<br>
<br>
C:\Temp>where link<br>
C:\Temp\binaries\amd64ret\bin\<wbr>amd64\link.exe<br>
<span class=""><br>
C:\Temp>cl /EHsc /nologo /W4 /MT meow.cpp && meow<br>
meow.cpp<br>
</span>I am C1XX: 191125506<br>
And I am 64-bit.<br>
<br>
C:\Temp>where clang-cl<br>
C:\Temp\ClangLLVM\bin\clang-<wbr>cl.exe<br>
<br>
C:\Temp>clang-cl -v -m64 /EHsc /nologo /W4 /MT meow.cpp && meow<br>
clang version 5.0.0 (tags/RELEASE_500/rc2)<br>
Target: x86_64-pc-windows-msvc<br>
Thread model: posix<br>
InstalledDir: C:\Temp\ClangLLVM\bin<br>
clang-cl.exe: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>clang-cl.exe" -cc1 -triple x86_64-pc-windows-msvc18.0.0 -emit-obj -mrelax-all -mincremental-linker-<wbr>compatible -disable-free -main-file-name meow.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -D_MT -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb -resource-dir "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0" -internal-isystem "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0\\include" -internal-isystem "C:\\Temp\\binaries\\amd64ret\<wbr>\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>Windows\\10\\sdk\\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>UnifiedCRT\\inc" -WCL4 -fdeprecated-macro -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120 -fms-extensions -fms-compatibility -fms-compatibility-version=18 -std=c++11 -fno-threadsafe-statics -fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-0e7e4d.<wbr>obj" -x c++ meow.cpp<br>
<span class="">clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target x86_64-pc-windows-msvc<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
</span> C:\Temp\ClangLLVM\lib\clang\5.<wbr>0.0\include<br>
 C:\Temp\binaries\amd64ret\inc<br>
 C:\Temp\ExternalApis\Windows\<wbr>10\sdk\inc<br>
 C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
<span class="">End of search list.<br>
In file included from meow.cpp:1:<br>
</span>In file included from C:\Temp\binaries\amd64ret\inc\<wbr>iostream:6:<br>
In file included from C:\Temp\binaries\amd64ret\inc\<wbr>istream:6:<br>
In file included from C:\Temp\binaries\amd64ret\inc\<wbr>ostream:6:<br>
In file included from C:\Temp\binaries\amd64ret\inc\<wbr>ios:6:<br>
In file included from C:\Temp\binaries\amd64ret\inc\<wbr>xlocnum:7:<br>
In file included from C:\Temp\binaries\amd64ret\inc\<wbr>cmath:617:<br>
In file included from C:\Temp\binaries\amd64ret\inc\<wbr>xtgmath.h:9:<br>
C:\Temp\binaries\amd64ret\inc\<wbr>xtr1common(204,22) :  error: use of undeclared identifier 'char16_t'<br>
        struct _Is_integral<char16_t><br>
                            ^<br>
[...more errors...]<br>
<br>
C:\Temp>clang-cl -v -m64 /EHsc /nologo /W4 /MT -fms-compatibility-version=19.<wbr>11.25506 meow.cpp && meow<br>
clang version 5.0.0 (tags/RELEASE_500/rc2)<br>
Target: x86_64-pc-windows-msvc<br>
Thread model: posix<br>
InstalledDir: C:\Temp\ClangLLVM\bin<br>
clang-cl.exe: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>clang-cl.exe" -cc1 -triple x86_64-pc-windows-msvc19.11.<wbr>25506 -emit-obj -mrelax-all -mincremental-linker-<wbr>compatible -disable-free -main-file-name meow.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -D_MT -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb -resource-dir "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0" -internal-isystem "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0\\include" -internal-isystem "C:\\Temp\\binaries\\amd64ret\<wbr>\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>Windows\\10\\sdk\\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>UnifiedCRT\\inc" -WCL4 -fdeprecated-macro -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120 -fms-extensions -fms-compatibility -fms-compatibility-version=19.<wbr>11.25506 -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-a284f9.<wbr>obj" -x c++ meow.cpp<br>
<span class="">clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target x86_64-pc-windows-msvc<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
</span> C:\Temp\ClangLLVM\lib\clang\5.<wbr>0.0\include<br>
 C:\Temp\binaries\amd64ret\inc<br>
 C:\Temp\ExternalApis\Windows\<wbr>10\sdk\inc<br>
 C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
End of search list.<br>
 "link.exe" -out:meow.exe -nologo "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-a284f9.<wbr>obj"<br>
<span class="">clang-cl.exe: error: unable to execute command: program not executable<br>
clang-cl.exe: error: linker command failed with exit code 1 (use -v to see invocation)<br>
<br>
</span>C:\Temp>clang-cl -v -m64 /EHsc /nologo /W4 /MT -fms-compatibility-version=19.<wbr>11.25506 -fuse-ld=lld-link meow.cpp && meow<br>
clang version 5.0.0 (tags/RELEASE_500/rc2)<br>
Target: x86_64-pc-windows-msvc<br>
Thread model: posix<br>
InstalledDir: C:\Temp\ClangLLVM\bin<br>
clang-cl.exe: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>clang-cl.exe" -cc1 -triple x86_64-pc-windows-msvc19.11.<wbr>25506 -emit-obj -mrelax-all -mincremental-linker-<wbr>compatible -disable-free -main-file-name meow.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -D_MT -flto-visibility-public-std --dependent-lib=libcmt --dependent-lib=oldnames -stack-protector 2 -fcxx-exceptions -fexceptions -fexternc-nounwind -fms-volatile -fdiagnostics-format msvc -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb -resource-dir "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0" -internal-isystem "C:\\Temp\\ClangLLVM\\lib\\<wbr>clang\\5.0.0\\include" -internal-isystem "C:\\Temp\\binaries\\amd64ret\<wbr>\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>Windows\\10\\sdk\\inc" -internal-isystem "C:\\Temp\\ExternalApis\\<wbr>UnifiedCRT\\inc" -WCL4 -fdeprecated-macro -fdebug-compilation-dir "C:\\Temp" -ferror-limit 19 -fmessage-length 120 -fms-extensions -fms-compatibility -fms-compatibility-version=19.<wbr>11.25506 -std=c++14 -fdelayed-template-parsing -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-0b315e.<wbr>obj" -x c++ meow.cpp<br>
<span class="">clang -cc1 version 5.0.0 based upon LLVM 5.0.0-rc2 default target x86_64-pc-windows-msvc<br>
#include "..." search starts here:<br>
#include <...> search starts here:<br>
</span> C:\Temp\ClangLLVM\lib\clang\5.<wbr>0.0\include<br>
 C:\Temp\binaries\amd64ret\inc<br>
 C:\Temp\ExternalApis\Windows\<wbr>10\sdk\inc<br>
 C:\Temp\ExternalApis\<wbr>UnifiedCRT\inc<br>
End of search list.<br>
 "C:\\Temp\\ClangLLVM\\bin\\<wbr>lld-link" -out:meow.exe -nologo "C:\\Users\\stl\\AppData\\<wbr>Local\\Temp\\2\\meow-0b315e.<wbr>obj"<br>
<span class="">I am Clang: 5.0.0 (tags/RELEASE_500/rc2)<br>
</span>And I am 64-bit.<br>
<br>
Hope this helps,<br>
STL<br>
</blockquote></div><br></div>