LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   no G++ command (https://www.linuxquestions.org/questions/linux-software-2/no-g-command-102156/)

jcovey 10-09-2003 01:31 PM

no G++ command
 
I'm using Red Hat 9 for my CS classes and in lab we are using g++ to compile our programs for C++. I just put RH 9 onto my computer and when I try to compile with g++ it doesn't work and says 'g++ command not found.' Is there anyway to put it on there so I can compile?

webtoe 10-09-2003 03:19 PM

you need to install the GCC compiler. It has the c and C++ compilers in it. (the g++ is the name for the C++ compiler in the GCC package).

Alex

jcovey 10-09-2003 05:59 PM

Thanks for helping. I got it to work now.

wuck 10-10-2003 05:33 AM

It could also be a missing symlink somewhere. There should be a command to check for a GCC .rpm file, and you can search for its binaries by something like:

$ find / | grep "gcc"

And if that delivers nothing, try installing it! :)


All times are GMT -5. The time now is 07:59 AM.