<div dir="ltr"><div class="gmail_extra">I use MSYS2/bash here. But just to be sure, i did the same test on cmd.exe, and it worked. The --sysroot parameter is not even necessary if the 64bit gcc is in the PATH (again, it must be in front of the 32bit).</div><div class="gmail_extra"><br></div><div class="gmail_extra">I also tried with the Clang fromĀ <a href="http://llvm.org/builds/" target="_blank">http://llvm.org/builds/</a> and it worked. That Clang doesn't need the 32bit mingw on PATH to run, because it is built with MSVC. Can you try with it?</div><div class="gmail_extra"><br></div><div class="gmail_extra">If you don't want to run the installer, you can exract it with 7-Zip or any other extractor. Then put the mingw 64bit on PATH, and run:</div><div class="gmail_extra"><br></div><div class="gmail_extra">clang++ test.cpp -static -m64 -pthread</div></div>