Difference between g++ and c++?

Andrew Haley aph at redhat.com
Wed Jan 27 15:56:16 UTC 2010


On 01/27/2010 03:51 PM, Jeff Voskamp wrote:
> On 01/27/2010 06:37 AM, Andrew Haley wrote:
>> 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++*

> The "4" in the ls  output means there are 4 file names which reference 
> the same file (i.e. it's a hard link).

Yes.  But what is your point?

Andrew.


More information about the users mailing list