1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
I think you can use gcc13 by installing gcc itself from source.
I confirmed that I can install it by running the following command in my environment.
Please note that the installation will take some time.
If you want to shorten the time, add "--disable-bootstrap" to the "./configure" command option to reduce the number of builds.
dnf install gcc g++ -y
wget https://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-13.2.0/gcc-13.2.0.tar.gz
tar xzf gcc-13.2.0.tar.gz
cd gcc-13.2.0
./contrib/download_prerequisites
mkdir build
cd build
../configure --enable-languages=c,c++ --prefix=/usr/local --disable-multilib --disable-bootstrap
make
make install
reboot
gcc -v
g++ -v
Relevant content
- asked 5 years ago
- asked 2 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 10 months ago
Thank you very much for your answer!
The one thing I'd note is that if mixing C++ code that's built with different versions of GCC, things can get a little bit more fun than you're expecting. Do check out https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html for more information.