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
0
-
Did you know you can set the `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
-
What IDE do you use? – galexite Oct 07 '21 at 21:08
-
I use both CLion and Code::Blocks – davidvan Oct 07 '21 at 21:15
-
I think i just need to know how to set the CXX environment variable then. – davidvan Oct 07 '21 at 21:29
-
Well, I solved the problem in a roundabout way, I upgraded to 21.04 and it set my default g++ to 10 – davidvan Oct 08 '21 at 01:01