My Linux machine has the following definition:
- RHEL 5.4
- Kernel release.2.6.18
but I don’t have the g++ command. (I need to write c++ programs under Linux)
[root@linux /etc]# g++ -bash: g++: command not found
I also tried the following:
yum install gcc loaded plugins: security Setting up Install Process No package g++ available. Nothing to do
My question: How do I install/download the g++ command? From where can I get g++?
I have the gcc command but this is only for C programs, not C++.
[root@linux /]# which gcc /usr/bin/gcc
From man page I see: (I'm not sure if gcc also compiles C++)
[root@linux /]# man gcc GCC(1) GNU GCC(1) NAME gcc - GNU project C and C++ compiler