Supports C ++ 0x GCC Installation

Source: Internet
Author: User

There are a lot of tutorials on the Internet, but there are still some problems according to the tutorials...

Some tutorials are misleading:In the configure of GCC, we found that the system does not have GMP and mpfr. On the official website of GNU, I got a GMP and an mpfr on the official website of mpfr.

In fact, it does not need to be so complicated. compile it as follows:

    1. Get the latest GCC versionSVN checkout SVN: // gcc.gnu.org/svn/gcc/trunk somelocaldir
    2. Obtain the compilation dependency:./Contrib/download_prerequisites
    3. ./Configure -- prefix = $ home
    4. Make & make install

After compilation, the latest GCC is installed in the $ home/bin folder. You can use g ++ in this folder to compile the C ++ 0x file, you only need to add the-STD = C ++ 0x compilation option.

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.