skip to Main Content

I am running an application and it throws me an error saying:

"C++ header ‘string_view’ is required. You need to install a newer libstdc++ on the host system."

Can someone guide me on what I need to do to get a newer version of "libstdc++" on my machine?

Thanks

2

Answers


  1. Try running yum provides libstdc++ to show you what package provided the library on your system. You can then check if those packages are available for update using yum list available | grep <that package> followed by yum update <that package>.

    Login or Signup to reply.
  2. Facing the same issue, I built gcc from source. This way you get to choose your own version. It’s actually pretty straightforard — see Building GCC at https://gcc.gnu.org/wiki/InstallingGCC.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search