I am using 20.04 and I have g++ 10 installed, but when I use g++ --version it says 9.3. Also, I can't use any c++ 20 in my code in either IDE I use. Please let me know how I make g++ 10 the default. Thanks
Asked
Active
Viewed 27 times
CXX
environment variable, and most build systems will inherit that configuration? If you're using a build system generator, like CMake, you'll need to export this in your environment when you run configuration. – galexite Oct 07 '21 at 21:04