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

Wei Li weili747 at gmail.com
Wed Sep 1 14:55:02 PDT 2010


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

-- 
Regards,

Wei Li




More information about the cfe-dev mailing list