"Go" gcc downgrade to 4.4, compile android,ubuntu12.04

Source: Internet
Author: User

1. View GCC version and g++ version

:/usr/bin$ ls-l gcc*
lrwxrwxrwx 1 root root 7 19:26 gcc--gcc-4.6
-rwxr-xr-x 1 root root 353216 Apr 07:37 gcc-4.6

:/usr/bin$ ls-l g++*
lrwxrwxrwx 1 root root 7 Mar 04:05 g++-g++-4.6
-rwxr-xr-x 1 root root 357312 Apr 07:36 g++-4.6
2. Installing GCC and g++ version 4.4

sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib

3. Modify GCC Links

sudo mv gcc Gcc.bak
sudo ln-s gcc-4.4 gcc

:/usr/bin$ ls-l gcc*
lrwxrwxrwx 1 root root 7 Sep 6 10:43 gcc--gcc-4.4
-rwxr-xr-x 1 root root 259232 Apr 14:20 gcc-4.4
-rwxr-xr-x 1 root root 353216 Apr 07:37 gcc-4.6
lrwxrwxrwx 1 root root 7 19:26 Gcc.bak-gcc-4.6
4. Modify g++ Link

sudo mv g++ G++.bak
sudo ln-s g++-4.4 g++

:/usr/bin$ ls-l g++*
lrwxrwxrwx 1 root root 7 Sep 6 10:45 g++-g++-4.4
-rwxr-xr-x 1 root root 263328 Apr 14:18 g++-4.4
-rwxr-xr-x 1 root root 357312 Apr 07:36 g++-4.6
lrwxrwxrwx 1 root root 7 Mar 04:05 G++.bak-g++-4.6

5. View gcc and g++ version numbers

Gcc-v

G++-v

"Go" gcc downgrade to 4.4, compile android,ubuntu12.04

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.