On my ubuntu 20.4 machine, to try building a Makefile based program, I tried 'make' but found it needs g++-8. So I added 'universe' repository following this and installed g++8 by
sudo apt install gcc-8 g++-8
Now when I run 'make', I see this message.
make: *** No rule to make target '/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h', needed by 'obj/main.o'. Stop
Why is it looking for files for redhat linux?? Do I have to do something?
g++
itself is the culprit using: | gcc-8 -E -v -xc++ -
and looking for the section starting#include <...> search starts here:
– steeldriver Mar 02 '23 at 12:38