Re: Difference between g++ and c++?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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++*
>
> Andrew.
>    
The "4" in the ls  output means there are 4 file names which reference 
the same file (i.e. it's a hard link).

For example:
[javoskam@amnesia ~]$ mkdir z
[javoskam@amnesia ~]$ cd z
[javoskam@amnesia z]$ touch abc
[javoskam@amnesia z]$ ln -f abc def
[javoskam@amnesia z]$ touch ghi
[javoskam@amnesia z]$ ls -l
total 0
-rw-rw-r--. 2 javoskam javoskam 0 2010-01-27 10:49 abc
-rw-rw-r--. 2 javoskam javoskam 0 2010-01-27 10:49 def
-rw-rw-r--. 1 javoskam javoskam 0 2010-01-27 10:49 ghi
[javoskam@amnesia z]$ echo "hello there" >>abc
[javoskam@amnesia z]$ ls -l
total 8
-rw-rw-r--. 2 javoskam javoskam 12 2010-01-27 10:50 abc
-rw-rw-r--. 2 javoskam javoskam 12 2010-01-27 10:50 def
-rw-rw-r--. 1 javoskam javoskam  0 2010-01-27 10:49 ghi

Jeff

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux