Difference between g++ and c++?

Jakub Jelinek jakub at redhat.com
Wed Jan 27 11:18:05 UTC 2010


On Wed, Jan 27, 2010 at 12:07:01PM +0100, Joachim Backes wrote:
> 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?

It is a link (hardlink).

> 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

	Jakub


More information about the users mailing list