Re: g++ on Fedora 7?



On Sat, 11 Aug 2007, in the Usenet newsgroup linux.redhat, in article
<46bddba1$1$18068$e4fe514c@xxxxxxxxxxxxxxxxxxxxxxxx>, Huub wrote:

I'm trying compile a C++ program on Fedora 7 using g++ but I get the
message g++: unknown command. gcc works ok. What should I install to
have g++ working?

rpm -qa | grep gcc
rpm -qa | grep '++'

[compton ~]$ zgrep gcc rpms.fc7.gz | cut -c32-
5454019 May 23 16:03 gcc-4.1.2-12.i386.rpm
3548952 May 23 16:03 gcc-c++-4.1.2-12.i386.rpm
3209922 May 23 16:04 gcc-gfortran-4.1.2-12.i386.rpm
2782716 May 23 16:04 gcc-java-4.1.2-12.i386.rpm
89606 May 23 17:42 libgcc-4.1.2-12.i386.rpm
[compton ~]$ grep gcc fc7-updates.08.10.07 | cut -c32-
2437382 Aug 08 12:41 arm-gp2x-linux-gcc-4.1.2-6.fc7.i386.rpm
5449948 Aug 08 12:41 arm-gp2x-linux-gcc-c++-4.1.2-6.fc7.i386.rpm
[compton ~]$ zgrep '++' rpms.fc7.gz | cut -c32-
43356 May 23 14:57 bonnie++-1.03a-6.fc6.i386.rpm
3548952 May 23 16:03 gcc-c++-4.1.2-12.i386.rpm
363373 May 23 18:04 libstdc++-4.1.2-12.i386.rpm
9851879 May 23 18:04 libstdc++-devel-4.1.2-12.i386.rpm
[compton ~]$ zgrep '++' fc7-updates.08.10.07 | cut -c32-
141303 Jul 30 15:37 GraphicsMagick-c++-1.1.8-2.fc7.i386.rpm
50335 Jul 30 15:37 GraphicsMagick-c++-devel-1.1.8-2.fc7.i386.rpm
5449948 Aug 08 12:41 arm-gp2x-linux-gcc-c++-4.1.2-6.fc7.i386.rpm
[compton ~]$

Looks like you need the 'gcc-c++' package, and may need the 'libstdc++'
packages too (the -devel package is needed for compiling, but not for
running the resulting binary).

Old guy
.



Relevant Pages