To use recent versions of compilers such as gcc 11 on centos stream, install the gcc toolsets, eg gcc-toolset-11 which is in the AppStream repos.

Answer from jiopaley on Stack Overflow
🌐
Centos
cbs.centos.org › koji › buildinfo
devtoolset-11-gcc-11.2.1-1.1.el7 | Build Info | CentOS Community Build Service
October 19, 2021 - Main Site Links: · Summary · Packages · Builds · Tasks · Build Targets · Users · Hosts · Reports · Search
🌐
Centos
git1.centos.org › rpms › devtoolset-11 › releases
Releases - rpms/devtoolset-11 - CentOS Git server
devtoolset-11-imports/c7/devtoolset-11-11.0-3.el7.zip · devtoolset-11-imports/c7/devtoolset-11-11.0-3.el7.tar.gz · Powered by Pagure 5.14.1 ·
🌐
Centmin Mod
community.centminmod.com › threads › devtoolset-11-gcc-11-2-1.22340
Devtoolset-11 (GCC-11.2.1) | Centmin Mod Community Support Forums
June 8, 2022 - The main package for devtoolset-11 (devtoolset-11-11.0-3.el7.x86_64.rpm) software collection is already available on CentOS Mirror DEVTOOLSETELEVEN ??
🌐
GitHub
github.com › pypa › manylinux › issues › 1266
devtoolset-11 for manylinux_2014 · Issue #1266 · pypa/manylinux
January 27, 2022 - Last year we had the upgrade to devtoolset-10 for manylinux_2014 see #1141 and #1155. Now the devtoolset-11 is also released for CentOS 7. See below: https://centos.pkgs.org/7/centos-sclo-rh-x86_64/devtoolset-11-toolchain-11.0-3.el7.x86_...
Author   pypa
🌐
GitHub
github.com › nealef › clefos › issues › 9
yum -y install devtoolset-11-* failing with `No package devtoolset-11-* available.` · Issue #9 · nealef/clefos
January 29, 2022 - It seems that devtoolset-11 has not been rebuild yet for clefos 7. Is this planned and if so, do you have an ETA on this ? This has been found when investigating pypa/manylinux#1266 CentOS 7 sources are available for devtoolset-11: https://vault.centos.org/centos/7/sclo/Source/rh/ The CentOS 7 x86_64 image is able to run the same commands as below successfully.
Author   nealef
🌐
Fedora Discussion
discussion.fedoraproject.org › team workflows › projects in copr
mayeut/devtoolset-11 - Fedora Discussion
January 29, 2022 - Description devtoolset-11 rebuild for centos 7 i686 Installation Instructions yum install devtoolset-11-binutils devtoolset-11-gcc [...] Active Releases The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).
🌐
CERN
linuxsoft.cern.ch › cern › centos › 7 › sclo › x86_64 › rh › repoview › devtoolset-11-gdb.html
devtoolset-11-gdb
CentOS 7 - SCL for x86_64: unspecified: devtoolset-11-gdb · Jump to letter: [ CDGHLMNPRSTV ]
Find elsewhere
🌐
Centos
git.centos.org › devtoolset-11-gcc
Index of /devtoolset-11-gcc
This directory tree contains sources used to build src.rpm from git for SIGs You can also find older centos 7/8/8-stream sources (archived).
🌐
Red Hat
access.redhat.com › documentation › en-us › red_hat_developer_toolset › 11 › html-single › user_guide › index
User Guide | Red Hat Developer Toolset | 11 | Red Hat Documentation
July 19, 2023 - In Red Hat Developer Toolset, the GNU C++ compiler is provided by the devtoolset-11-gcc-c++ package and is automatically installed with the devtoolset-11-toolchain package as described in Section 1.5, “Installing Red Hat Developer Toolset”. To compile a C++ program on the command line, run the g++ compiler as follows: scl enable devtoolset-11 'g++ -o output_file source_file...'
🌐
Ahelpme
ahelpme.com › home › linux › centos 7 › how to install new gcc and development tools under centos 7
How to install new gcc and development tools under CentOS 7 | Any IT here? Help Me!
September 5, 2019 - [srv@local ~]# yum install ...=================== Installing: devtoolset-7-gcc x86_64 7.3.1-5.4.el7 centos-sclo-rh 29 M devtoolset-7-gcc-c++ x86_64 7.3.1-5.4.el7 centos-sclo-rh 11 M devtoolset-7-gcc-gdb-plugin x86_64 7.3.1-5.4.el7 centos-sclo-rh 123 k devtoolset-7-gcc-gfortran ...
🌐
Centos
buildlogs.centos.org › centos › 7 › sclo › x86_64 › rh › Packages › d
Index of /centos/7/sclo/x86_64/rh/Packages/d
This server contains a mix of raw/unsigned packages and/or build logs It should be used mainly for testing purposes
🌐
Stack Overflow
stackoverflow.com › questions › tagged › devtoolset
Newest 'devtoolset' Questions - Stack Overflow
I'm facing a strange error ("reference to 'list' is ambiguous") in compiling a C++ 3rd party software under CentOS 7 with devtoolset-11.