can you tell me how to update my g++ compiler currently it shows g++ (tdm64-1) 5.1.0 at command promt as many functions such as range based for loops are not supported
Gcc compiler installation
- sudo apt install software-properties-common
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- sudo apt install g++ -9
you may need to refer https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/
thanks
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.