Recently you need to use c++11, so you need to upgrade GCC from 4.4.7 to 4.8.1.
First we need to download the GCC source
wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.1/gcc-4.8.1.tar.gz
Then unzip into the directory
Tar-xvzf gcc-4.8
First to http://vault.centos.org/6.3/os/x86_64/Packages/download the use of the RPM package, including: ppl-0.10.2-11.el6.x86_64.rpm, cloog-ppl-0.15.7-1.2.el6.x86_64.rpm, mpfr-2.4.1-6.el6.x86_64.rpm, cpp-4.4.6-4.el6.x86_64.rpm, kernel-headers-2.6.32-279.el6.x86_64.rpm, glibc-headers-2.12-1.80.el6.x86_64.rpm, glibc-devel-2.12-1.80.el6.x86_ 64.rpm, libstdc++-devel-4.4.6-4.el6.x86_64.rpm, gcc-4.4.6-4.el6.x86_64.rpm,
1. The environment is in the title
2. gcc-4.9.1 compilation and installation requires the system to have a set of GCC/g ++
3. Use Yum to install gcc/g ++
1 yum install gcc2 yum install gcc-c++
4. Download gcc-4.9.1 upload server via winscp
5. Extract
1 tar xvf
1. Prepare a download directory in the home directory cd/home;mkdir download2. Enter the/home/download directory and download gcc-4.8.2 wget http://gcc.skazkaforyou.com/releases/gcc-4.8.2/gcc-4.8.2.tar.gz.3. Unzip the downloaded compressed package TAR-XZVF gcc-4.8.2.tar.gz;4. Enter the library after the compressed dire
1. Download the source code installation package on the official website:Gcc-4.9.3.tar.gz2. Unzip the installation package and enter the extracted folder:TAR-ZXVF gcc-4.9.3.tar.gz3. Download dependencies using the tools in the compact package:./contrib/download_prerequisitesWhen you execute this command, you need to download the dependency package online;4. Build the compiled output folder:mkdir outputCD output5. Compile the
First, the direct installation of GCC, the report relies on errors, the following figure:
Second, the direct installation of Cloog, reported Reliance Error, as shown:
Third, the direct installation of CPP, reported dependency error, as shown:
Four, the correct installation sequence:
1, install mpfr-2.4.1-6.el6.x86_64.rpm, as shown:
2, install ppl-0.10.2-11.el6.x86_64.rpm, as shown:
3, installation of CPP, as shown:
4,
I. INTRODUCTION of GCC:The GNU Compiler Collection, often referred to as GCC, is a set of compilers developed by GNU, and why is it an editor set instead of a compiler? That's because it not only supports C language compilation, but also supports C + +, Ada, Objective C and many other languages. In addition, GCC support for the hardware platform can be ubiquitous, it not only supports the X86 processor arch
Analysis on the Relationship between GCC, arm-Linux-GCC, and arm-elf-gcc
Embedded Development Exchange Group 280352802, welcome to join!1. Introduction to GCC
The GNU Compiler Collection, usually GCC for short, is a set of compilers developed by GNU. Why is it an editor set
An error occurred while installing gcc-c ++. The original gcc version is in conflict.
The following error is reported when gcc-c ++ is installed in CentOS 6.7:
Resolving Dependencies--> Running transaction check---> Package gcc-c ++. i686. 4.7-11. el6 will be installed--> Pr
Regarding the GCC issue, if we don't need to use the RPM package to install GCC, what if we use the compilation method to install GCC? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. We know that GCC is a compilation tool, and
Busybox/src/include/platform.h
/* Fast_func is a qualifier which (possibly) makes function call faster
* and/or smaller by using modified ABI. It is usually only needed
* on non-static, busybox internal functions. Recent versions of GCC
* optimize statics automatically. Fast_func on the static is required
* only if your need to match a function pointer ' s type * * *
#if __gnuc_prereq (3,0) A mp; defined (i386)/* | | Defined (__x86_64__)? *////
*
The previous few days in preparation for the CENTOS7 under the compilation environment, the online installation of GCC and gcc-c++ is very simple, as long as the machine is networked in the terminal window in order to enter separately1 Yum Install gcc 2 Yum install gcc-c++The installation can be completed online, and t
when using the new version of GCC, and to compile the program using the original GCC. Of course, you can also link the/usr/bin directory gcc,g++ command back to the new version of the GCC executable. The last thing to do before the formal use is to add the path of the three libraries that were previously installed to
Centos 6.5 Installation Deployment:1.Linux (centos6.5) launch interface into the command line interface:Start the interface up and down into the Grub menu, press the keyboard ' E ' key, select Kernel ..., press ' E ' key, add parameter 3, press ENTER, press keyboard ' e ', enter command line mode.2.ssh encountered ' Host Key verification failed 'SSH will record the public key of each computer you access to ~/.ssh/known_hosts, and when the next time yo
Less Optimization-> more optimization:
O0 --> O1 --> O2 --> O3
-O0 indicates no optimization,-O1 indicates the default value, and-O3 indicates the highest optimization level.
English explanation:
'-O'
'-O1'
Optimize. Optimizing compilation takes somewhat more time, and
Lot more memory for a large function.
With '-O', the compiler tries to reduce code size and execution
Time, without specify Ming any optimizations that take a great deal
Of compilation time.
'-O' turns on the following optimizatio
1. this document is applicable to the compilation and use of gcc-3.0 and gcc-3.0.x under SCO 5.0.6. the same method can also be used to compile gcc-2.95.x, gcc-3.2.x, gcc-3.3. this article takes the gcc-3.0 as an example to illust
to set up Yum source.After installing CentOS, it is generally necessary to modify the Yum source to achieve the desired speed when installing the update RPM package. Domestic relatively fast has 163 source, Sohu source. Here is an example of a 163 source.1. CD/ETC/YUM.REPOS.D2. MV Centos-base.repo Centos-base.repo.backup3. wget Http://mirrors.163.com/.help/CentO
Update Linux GCC to GCC 4.4.2
First need to prepare required materials: gcc4.4.2 version need to install gmp4.2.0 + and mpfr2.3.0 +, to the site of GMP (http://gmplib.org/fuse download gmp-4.3.1.tar.gz and MPRF sites (http://www.mpfr.org/fuse download mpfr-2.4.2.tar.gz)
1.Install GMP# Wget ftp://ftp.gmplib.org/pub/gmp-5.0.0/gmp-5.0.0.tar.bz2# Tar-zxvf gmp-4.3.2.tar.gz# Cd gmp-4.3.2#./Configure# Make# Make
Talk GCC together (second: GCC), talkgcc
Hello, everyone. The last time we introduced GCC briefly. Let's talk about how to use GCC later,
The words are right. Let's talk GCC together!
In the last session, we only talked about the GCC
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.