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). Grab a mingw build from here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/(tested with gcc-4-6-dw2). Then configure cmake with cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release <path_to_llvm>. Then use mingw32-make to compile and off you go. 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.
On 22 May 2013 13:42, asif saeed <[email protected]> wrote: > Hi, > > I am a newbie wishing to use Clang. I have followed instructions here: > > http://clang.llvm.org/get_started.html > > 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: > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > -- Constructing LLVMBuild project information > CMake Error at CMakeLists.txt:310 (message): > Unexpected failure executing llvm-build: Traceback (most recent call > last): > > File "C:/llvm_clang/llvm/utils/llvm-build/llvm-build", line 3, in > <module> > import llvmbuild > File "C:\llvm_clang\llvm\utils\llvm-build\llvmbuild\__init__.py", line > 1, in <module> > from main import main > > ImportError: No module named 'main' > > > -- Configuring incomplete, errors occurred! > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > 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. > > Best regards, > -Asif > > > _______________________________________________ > cfe-users mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users > >
_______________________________________________ cfe-users mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
