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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux