It was created by the GNU Project supporting various programming languages such as C (gcc), C++ (g++), Objective-C, Objective-C++, Fortran (gfortran), Java (gcj), Ada (GNAT), and Go (gccgo). You need to use the which command to locate c compiler binary called gcc. Usually, it is installed in /usr/bin directory.
The package you're looking for is confusingly named gcc-c++
.
instead of g++ you have to write gcc-c++
sudo dnf install gcc-c++
You should exec:
dnf install gcc-c++
I had the same problem. At least I could solve it with this:
sudo yum install gcc gcc-c++
Hope it solves your problem too.
Run the command bellow in a terminal emulator:
sudo dnf install gcc-c++
Enter password and that's it...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With