Gcc vs g ++

Source: Internet
Author: User


[Root @ localhost var] # rpm-qpR gcc-4.4.7-3.el6.x86_64.rpm
Warning: gcc-4.4.7-3.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
/Bin/sh
/Bin/sh
/Bin/sh
/Sbin/install-info
/Sbin/install-info
Binutils> = 2.19.51.0.14-33
Cloog-ppl> = 0.15
Cpp = 4.4.7-3. el6
Glibc-devel> = 2.2.90-12
Libc. so.6 () (64bit)
Libc. so.6 (GLIBC_2.11) (64bit)
Libc. so.6 (GLIBC_2.2.5) (64bit)
Libc. so.6 (GLIBC_2.3) (64bit)
Libc. so.6 (GLIBC_2.4) (64bit)
Libc. so.6 (GLIBC_2.7) (64bit)
Libgcc> = 4.4.7-3. el6
Libgcc_s.so.1 () (64bit)
Libgomp = 4.4.7-3. el6
Libgomp. so.1 () (64bit)
Rpmlib (CompressedFileNames) <= 3.0.4-1
Rpmlib (FileDigests) <= 4.6.0-1
Rpmlib (PartialHardlinkSets) <= 4.0.4-1
Rpmlib (PayloadFilesHavePrefix) <= 4.0-1
Rpmlib (VersionedDependencies) <= 3.0.3-1
Rtld (GNU_HASH)
Rpmlib (PayloadIsXz) <= 5.2-1

Sh-4.1 # rpm-qpR gcc-c ++-4.4.7-3. el6.x86 _ 64.rpm
Warning: gcc-c ++-4.4.7-3. el6.x86 _ 64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Gcc = 4.4.7-3. el6
Libc. so.6 () (64bit)
Libc. so.6 (GLIBC_2.11) (64bit)
Libc. so.6 (GLIBC_2.2.5) (64bit)
Libc. so.6 (GLIBC_2.4) (64bit)
Libc. so.6 (GLIBC_2.7) (64bit)
Libdl. so.2 () (64bit)
Libdl. so.2 (GLIBC_2.2.5) (64bit)
Libgmp. so.3 () (64bit)
Libmp Fr. so.1 () (64bit)
Libstdc ++ = 4.4.7-3. el6
Libstdc ++-devel = 4.4.7-3. el6
Libstdc ++. so.6 () (64bit)
Rpmlib (CompressedFileNames) <= 3.0.4-1
Rpmlib (FileDigests) <= 4.6.0-1
Rpmlib (PartialHardlinkSets) <= 4.0.4-1
Rpmlib (PayloadFilesHavePrefix) <= 4.0-1
Rpmlib (VersionedDependencies) <= 3.0.3-1
Rtld (GNU_HASH)
Rpmlib (PayloadIsXz) <= 5.2-1


Sh-4.1 # rpm-ql gcc-c ++-4.4.7-3. el6.x86 _ 64 | grep 'cc1plus'
/Usr/libexec/gcc/x86_64-redhat-linux/4.4.4/cc1plus

If you use GCC to compile a C ++ program directly, an error will be thrown:
Gcc: error trying to exec 'cc1plus ': execvp: No such file or directory
Note that even if you can use gcc to compile c ++, you also need to install the c ++ Library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.