Problem
How can I get g++ to work on Fedora Linux? I looked through the dnf command for a way to install g++ but couldn’t find anything.
How do I set it up?
I already have gcc installed.
Asked by saplingPro
Solution #1
The package you’re seeking for is called gcc-c++, which is a bit perplexing.
Answered by Schwern
Solution #2
You must use gcc-c++ instead of g++.
sudo dnf install gcc-c++
Answered by Hola Soy Edu Feliz Navidad
Solution #3
You should exec:
dnf install gcc-c++
Answered by Ruu
Solution #4
The same thing happened to me. At the very least, I was able to solve it with this:
sudo yum install gcc gcc-c++
I hope it also addresses your issue.
Answered by Khaibar
Solution #5
In a terminal emulator, type the following command:
sudo dnf install gcc-c++
That’s all there is to it…
Answered by Subham Debnath
Post is based on https://stackoverflow.com/questions/12952913/how-do-i-install-g-for-fedora