On 7/8/23 14:37, Sidney Marshall wrote:
When I compile GCC 10.5.0 from /pub/gcc/releases/gcc-10.5.0 and run
the resulting executable I get:
$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Did I do something wrong?
--Sidney Marshall
If you're running g++ from the shell, then unless you have `.` in your
PATH and its located before the usual `/bin` directories (very unlikely
and an absolutely horrible idea), you're running the g++ binary that's
provided by the system.
If you want to run a g++ binary located in your current directory, do
`./g++`