Difference between g++ and c++?

Gilboa Davara gilboad at gmail.com
Wed Jan 27 11:20:16 UTC 2010


On Wed, 2010-01-27 at 12:07 +0100, Joachim Backes wrote:
> Hi,
> 
> In F12, I installed gcc-c++, containing /usr/bin/g++ and /usr/bin/c++: 
> comparing both, getting the result: these files are identical. Why then 
> c++ is not a link to g++? Are there important philosophical or 
> historical reasons?
> 
> ls -l /usr/bin/c++ /usr/bin/g++
> -rwxr-xr-x 4 root root 235972 2009-12-22 13:57 /usr/bin/c++
> -rwxr-xr-x 4 root root 235972 2009-12-22 13:57 /usr/bin/g++
> 
> diff /usr/bin/c++ /usr/bin/g++ && echo files are identical
> files are identical
> 
> Regards

As far as I know, both are the identical.
(Same goes for $ARCH-redhat-linux-g++/c++)
No idea why the packages isn't using symbolic links instead of packaging
the same files 4 times...
I'd post a message in -devel about it. (Or file a bug report against
gcc-c++)

- Gilboa



More information about the users mailing list