When I use LLVM&Clang 3.1&MinGW ( GCC 4.6.2 ) compile LLVM/Clang3.2. There has been a problem。 Problem: llvm[4]: Linking Release executable clang (without symbols) f:/SVN/LLVM/3.2/llvm/Release/lib/libclangAST.a(AttrImpl.o):fake:(.text$_ZN5clang15InheritableAttrD0Ev+0x0): mu ltiple definition of `clang::InheritableAttr::~InheritableAttr()' f:/SVN/LLVM/3.2/llvm/Release/lib/libclangSerialization.a(ASTReaderDecl.o):fake:(.text$_ZN5clang15InheritableAt trD0Ev[clang::InheritableAttr::~InheritableAttr()]+0x0): first defined here f:/SVN/LLVM/3.2/llvm/Release/lib/libclangAST.a(AttrImpl.o):fake:(.text$_ZN5clang20InheritableParamAttrD0Ev+0x0 ): multiple definition of `clang::InheritableParamAttr::~InheritableParamAttr()' f:/SVN/LLVM/3.2/llvm/Release/lib/libclangSerialization.a(ASTReaderDecl.o):fake:(.text$_ZN5clang20InheritablePa ramAttrD0Ev[clang::InheritableParamAttr::~InheritableParamAttr()]+0x0): first defined here collect2: ld returned 1 exit status clang++: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation) make[4]: *** [/f/SVN/LLVM/3.2/llvm/Release/bin/clang.exe] Error 1 make[4]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools/clang/tools/driver' make[3]: *** [all] Error 1 make[3]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools/clang/tools' make[2]: *** [all] Error 1 make[2]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools/clang' make[1]: *** [clang/.makeall] Error 2 make[1]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools' make: *** [all] Error 1
When I use the MinGW without LLVM/Clang, successfully constructing LLVM I think it is a Clang++ compiler and g++ compiler way exists difference, the source code should compile your clang++ and g++ compiler distinguished
If the first built by MinGW LLVM/Clang 3.2 and LLVM/Clang 3.2 with llvm/clang 3.2 installation and construction of llvm/clang 3.2 can be constructed successfully! Problems in LLVM/Clang 3.1