Difference between g++ and c++?

Andrew Haley aph at redhat.com
Wed Jan 27 11:37:38 UTC 2010


On 01/27/2010 11:34 AM, Joachim Backes wrote:

> 
> Maybe for the 64bit binaries, but not for the 32bit binaries:
> 
> file /usr/bin/g++ /usr/bin/c++
> 
> /usr/bin/g++: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
> /usr/bin/c++: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

They are the same file:

 $ ls -il /usr/bin/g++ /usr/bin/c++
33599 -rwxr-xr-x. 4 root root 270968 2009-12-22 13:03 /usr/bin/c++*
33599 -rwxr-xr-x. 4 root root 270968 2009-12-22 13:03 /usr/bin/g++*

Andrew.


More information about the users mailing list