I've installed gcc-9 and g++-9 as written in this answer
and updated the alternatives as shown in the comment, still when I type
man g++ it shows the man page of the previous version.
The output of
gcc -v and
g++ -v is 9.2.1
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community