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

Eric Christopher echristo at apple.com
Wed Sep 1 15:04:41 PDT 2010


On Sep 1, 2010, at 2:55 PM, Wei Li wrote:

> On Wed, Sep 1, 2010 at 4:46 PM, Eric Christopher <echristo at apple.com> wrote:
>> 
>> On Sep 1, 2010, at 2:40 PM, Wei Li wrote:
>> 
>>> Hi :
>>> 
>>> I am getting the follwing error when I compile a simple C++ program.
>>> 
>>> fatal error: 'bits/c++config.h' file not found
>>> 
>>> 
>>> I am using RedHat system.  I tried to find the c++config file but
>>> could not find it it. I checked the  /usr/include/c++/4.4.0/bits path.
>> 
>> Probably not the right set of include paths in the binary.  Which version of Red Hat Linux are you using and what gcc/g++ and libstdc++ do you have installed?
>> 
>> -eric
> 
> Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
> --enable-java-awt=gtk --disable-dssi --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
> --with-cpu=generic --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
> 
> 
> I am linking gcc-4.4.0 and not the gcc version 4.1.2

I don't know what you mean by linking in this context, but I'm guessing you're on Fedora 8 or some similar.  It should be able to find the include files.  Can you try something simple like hello world and use the -v option to clang to see what paths it's searching?

-eric



More information about the cfe-dev mailing list