[cfe-dev] fatal error: 'bits/c++config.h' file not found

Eric Christopher echristo at apple.com
Wed Sep 1 15:28:35 PDT 2010


On Sep 1, 2010, at 3:27 PM, Wei Li wrote:

> ./install/bin/clang++ -v -IDPC++-headers -nostdinc++
> -I/usr/include/c++/4.4.0/ ./test2.cpp
> clang version 2.8 (trunk 111936)
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
> "/home/cs/wei/install/bin/clang" -cc1 -triple
> x86_64-unknown-linux-gnu -S -disable-free -main-file-name test2.cpp
> -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
> -munwind-tables -target-cpu x86-64 -target-linker-version 2.17.50.0.6
> -v -nostdinc++ -resource-dir /home/cs/wei/install/lib/clang/2.8 -I
> DPC++-headers -I /usr/include/c++/4.4.0/ -ferror-limit 19
> -fmessage-length 80 -fexceptions -fgnu-runtime
> -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-hpIFFi.s -x
> c++ ./test2.cpp
> clang -cc1 version 2.8 based upon llvm 2.8svn hosted on x86_64-unknown-linux-gnu
> #include "..." search starts here:
> #include <...> search starts here:
> DPC++-headers
> /usr/include/c++/4.4.0
> /usr/local/include
> /home/cs/wei/install/lib/clang/2.8/include
> /usr/include

Well, it's looking where you told it so if the file isn't there then you need to figure out what you did.

-nostdinc++

is telling it not to look in the standard places it knows about.

-eric



More information about the cfe-dev mailing list