c++config.h in Fedora 29

Asked by At

I'm trying to compile simple c++ file and keep getting this problem

/usr/include/c++/8/iostream:38:10: fatal error: bits/c++config.h: No such file or directory

I also found c++config.h file here: /usr/include/c++/8/i686-redhat-linux/bits/c++config.h

I've found a solution for Ubuntu with installing gcc-multilib but this does not work for fedora (Error: Unable to find a match). I probably have g++ installed with gcc-c++.

1 Answers

0
bruno On

/usr/include/c++/8/iostream:38:10: fatal error: bits/c++config.h: No such file or directory

I also found c++config.h file here: /usr/include/c++/8/i686-redhat-linux/bits/c++config.h

That recalls the problem on https://stackoverflow.com/a/9617178/2458991

create the right symbolic link like doing (not sure f the name x86_64-redhat-linux) :

cd /usr/include/c++/8
ln -s i686-redhat-linux x86_64-redhat-linux

or

cd /usr/include/c++/8
ln -s i686-redhat-linux/bits

However I hope that will not give wrong definitions with a mix 32b / 64b, do some tests after ...