That also works for me. If, however, I also include
=gfortran-toolchain= in the mix
guix shell -C gcc-toolchain gfortran-toolchain -- g++ x.cpp
then I come back to the same error as before.
I found out the issue: =gfortran-toolchain= corresponds to GCC
11.3.0, while =gcc-toolchain= corresponds to version
13.2.0. Using:
guix shell -C gcc-toolchain@11.3.0 gfortran-toolchain -- g++
x.cpp
now works without errors.
bests,
baptiste
--
Baptiste Demoulin <baptiste.demou...@univ-amu.fr>
Research Engineer (Ingénieur de Recherche, CNRS)
Centre Interdisciplinaire de Nanoscience de Marseille (CINaM)
Département Théorie et Simulation Numérique
Campus de Luminy – Case 913
13288 MARSEILLE Cedex 09