<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yes, but I does't modify the file  tools/CIndex/CMakeLists.txt.<div>And I modify another file AddLLVM.cmake</div>

<div><br></div><div>
And I think it's get more meaning, because llvm is C++ application, so it's must be using the std-c++ library(stl)</div><div>So need to linkage with C++,</div><div>By the way, I've already test, it's working:)</div>

</blockquote><div>At last, I get it working, And I refactoring the llvm cmake system.</div><div><br></div><div>I think did this should make cmake for more easy to diagnose, because we always facing all kinds of linking error around the development period, for the </div>

<div>reason of fast locate the error, i print out the link info(). Because of gcc is very dependent on the order of the library to linked,</div><div>So I changed the order for the link of dynamic library, also I removed the redundant function in LLVMConfig.cmake module</div>

<div><br></div><div>By the way, for the last success on building CIndex, we must apply these two patch <span style="LINE-HEIGHT: normal; COLOR: #000000; FONT-SIZE: 10.5pt"><b>simultaneous</b></span> .</div><div>And I want to mention, if LLVM will support dynamic library linkage? </div>

<div>If that's true, then we can modify the cmake system to support it:)</div><div>Thanks.</div><div><br></div><div><br></div><div> </div></div>