2

I want to use some new C ++ 20 functions that are implemented in the as-yet-unreleased GCC-11. I tried installing the package on Ubuntu 20.04 but as expected it doesn't exist yet. The web search didn't come up with anything useful either.

Is there any way to use GCC-11 on Ubuntu 20.04?

cigien
  • 57,834
  • 11
  • 73
  • 112
Silicomancer
  • 8,604
  • 10
  • 63
  • 130

1 Answers1

3

There is a solution via ppa.

You can find the instructions here: Install g++ 11 on Ubuntu 20.04

  • I flagged this for [deletion](/help/deleted-answers) because it consists almost entirely of a link. A link to a solution is welcome, but please ensure your answer is [useful without it](//meta.stackexchange.com/a/8259): add context around the link so others will have some idea what it is and why it’s there, then quote the most relevant part in case the linked page is unavailable. If you [edit] this answer to add more once it is deleted, please flag it for moderator attention so that it can be un-deleted. – Muhammad Mohsin Khan Mar 15 '22 at 15:25
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/31281182) – Muhammad Mohsin Khan Mar 15 '22 at 15:25
  • From the page linked, the PPA in question: `sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test` – Dumaiu Sep 09 '22 at 00:51