Nope, I didn't include the part where it says "very long path pointing to Mingw64 ld.exe".  So it is not related to MS tools at all.  In fact, the MS tools are not even in the path.<div><br></div><div>Here's the linker command that CMake uses:</div>
<div><span style="background-color:rgb(255,255,255);font-family:'Courier New';font-size:12pt"><br></span></div><div><span style="background-color:rgb(255,255,255);font-family:'Courier New';font-size:12pt">c:\Synology\clang-3.2-win64\bin\clang++.exe   -O3 -DNDEBUG    CMakeFiles/braceless0.dir/Braceless.cpp.obj  -o ..\braceless0.exe  -Lc:\Synology\clang-3.2-WIN64\lib ..\libAST.a ..\libCompiler.a ..\libDriver.a ..\libBackend.a ..\libFrontend.a ..\libToolbox.a -lLLVMAsmParser -lLLVMInstrumentation -lLLVMLinker -lLLVMArchive -lLLVMBitReader -lLLVMDebugInfo -lLLVMJIT -lLLVMVectorize -lLLVMBitWriter -lLLVMTableGen -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMInterpreter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMMCJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport -lDbgHelp -lPsapi -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 </span></div>
<div><div style="font-family:'Courier New';font-size:12pt;background-color:rgb(255,255,255)"><pre>I must admit that I don't know how to get Clang to display what linker command it uses when asked to perform the link. The linker, ld.exe, is located in the Mingw64 directory as expected.</pre>
<pre><br></pre></div></div><div>Cheers,</div><div>Mikael<br>-- Love Thy Frog! <br><div class="gmail_quote">2012/6/11 Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> I don't think that's the issue here.  CMake happily tries to link with the<br>
> mingw libs,<br>
</div>Right, but it seems via MS link...<br>
<div><div><br>
--<br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</div></div></blockquote></div><br>
</div>