Re: Problem with g++ and iostream

2024-03-01 Thread Baptiste Demoulin
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= corre

Re: Problem with g++ and iostream

2024-03-01 Thread Baptiste Demoulin
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= corre

Re: Problem with g++ and iostream

2024-03-01 Thread Baptiste Demoulin
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 problem: =gfortan-toolchain= is at version =11.3.0=, while =gcc-toolchain= is at =

Re: Problem with g++ and iostream

2024-03-01 Thread Baptiste Demoulin
Hi, Tomas Volf <~@wolfsden.cz> writes: When I try to compile your source code using guix shell -C gcc-toolchain -- g++ x.cpp it does work. Could you try it as well to check whether it will work at least in a pure environment? That also works for me. If, however, I also include =gfortra

Re: Problem with g++ and iostream

2024-03-01 Thread Tomas Volf
On 2024-03-01 10:50:38 +0100, Baptiste Demoulin wrote: > Hello, > > I encountered a problem today with the =g++= compiler from the package > =gcc-toolchain=. When compiling a simple hello world program: > > #+begin_src c++ > #include > int main () { >std::cout << "Hello World\n"; >retur

Problem with g++ and iostream

2024-03-01 Thread Baptiste Demoulin
Hello, I encountered a problem today with the =g++= compiler from the package =gcc-toolchain=. When compiling a simple hello world program: #+begin_src c++ #include int main () { std::cout << "Hello World\n"; return 0; } #+end_src with: #+begin_src bash g++ hello.cc #+end_src