<div dir="ltr"><div><div><div>Clang can't parse VC11 headers, so you are much better off compiling it with mingw (using VC11 to compile clang and using stdlibc++ headers afterwards is a PITA).<br>Grab a mingw build from here: <a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/</a> (tested with gcc-4-6-dw2).<br>
</div>Then configure cmake with cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release <path_to_llvm>.<br></div>Then use mingw32-make to compile and off you go.<br></div>Clang works fine with stdlibc++ with gcc up to 4.8, but will only link with with 4.6.3 according to my own experience.<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 22 May 2013 13:42, asif saeed <span dir="ltr"><<a href="mailto:asif.lse2@gmail.com" target="_blank">asif.lse2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>I am a newbie wishing to use Clang. I have followed instructions here:</div><div><br></div><div><a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a><br>
</div><div><br></div><div>I used "Visual Studio 11 Win32" as the value for "-G" option (as I saw "Visual Studio 11 Win64" option in the docs). However, whether I specify this option or not, I get the following error:</div>
<div><br></div><div><div>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div>-- Constructing LLVMBuild project information</div><div>CMake Error at CMakeLists.txt:310 (message):</div><div> Unexpected failure executing llvm-build: Traceback (most recent call last):</div><div><br></div><div> File "C:/llvm_clang/llvm/utils/llvm-build/llvm-build", line 3, in <module></div>
<div> import llvmbuild</div><div> File "C:\llvm_clang\llvm\utils\llvm-build\llvmbuild\__init__.py", line 1, in <module></div><div> from main import main</div><div><br></div><div> ImportError: No module named 'main'</div>
<div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div><div><br></div><div><div>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
</div><div><br></div><div>I am at a loss as to what this error means. I'd be thankful if you could help me on this. I can't wait to use the C++11 features that Clang offers.</div><div><br></div><div>
Best regards,</div><div>-Asif</div><div><br></div></div></div>
<br>_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users</a><br>
<br></blockquote></div><br></div></div>