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

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

 



On 01/27/2010 12:18 PM, Germán A. Racca wrote:
On Wed, 2010-01-27 at 12:07 +0100, Joachim Backes wrote:
Hi,

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?

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

Regards
They are links to the same file.

$ file /usr/lib64/ccache/g++
/usr/lib64/ccache/g++: symbolic link to `../../bin/ccache'

$ file /usr/lib64/ccache/c++
/usr/lib64/ccache/c++: symbolic link to `../../bin/ccache'


Hi German,

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

And /usr/lib/ccache (belonging to the ccache package) is not standardly installed!

Not until having installed ccache, then ccache will contain g++ and c++:

 ls -l /usr/lib/ccache
total 0
lrwxrwxrwx 1 root root 16 2010-01-27 12:29 c++ -> ../../bin/ccache
lrwxrwxrwx 1 root root 16 2010-01-27 12:29 cc -> ../../bin/ccache
lrwxrwxrwx 1 root root 16 2010-01-27 12:29 g++ -> ../../bin/ccache
lrwxrwxrwx 1 root root 16 2010-01-27 12:29 gcc -> ../../bin/ccache
lrwxrwxrwx 1 root root 16 2010-01-27 12:29 i686-redhat-linux-c++ -> ../../bin/ccache lrwxrwxrwx 1 root root 16 2010-01-27 12:29 i686-redhat-linux-g++ -> ../../bin/ccache lrwxrwxrwx 1 root root 16 2010-01-27 12:29 i686-redhat-linux-gcc -> ../../bin/ccache

Regards

--
Joachim Backes <joachim.backes@xxxxxxxxxxxxxx>

http://www.rhrk.uni-kl.de/~backes

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
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