In order to use the C++17 include <filesystem> I need gcc-9 package in my centos 7 docker.
By default centos:7 will install gcc 4.8.5 from the regular distro repo.
docker run --rm -it centos:7
# yum install -y gcc
# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Is there any way to easily install a gcc-9 (or later) package (i.e. not build it from source)
Thanks !
note: need gcc-9 to have good C++17 <filesystem> support.
GCC 9 Release note:
Using the types and functions in
<filesystem>does not require linking with-lstdc++fsnow.