我正在尝试在/usr/local/bin/gcc
. 默认系统 gcc 是 4.4.6 in /usr/bin/gcc
.
同样的头文件:
/usr/include/c++/4.4.4/bits/stl_pair.h
/usr/local/include/c++/4.7.1/bits/stl_pair.h
我试图用cd /apps/llvmbuild ; /apps/llvm/configure --prefix=/apps/llvmbuild --enable-optimized --enable-cxx11 --enable-docs=no --enable-targets=host-only --disable-assertions CPPFLAGS=-I/usr/local/include/ CXXFLAGS=-I/usr/local/include/
接着
cd /apps/llvmbuild ; make -j12 ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1
但我收到错误,表明它正在 4.4.6 目录中搜索 c++ 文件:
/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/exception_ptr.h
locate exception_ptr.h
/usr/include/c++/4.4.4/exception_ptr.h
/usr/local/include/c++/4.7.1/bits/exception_ptr.h