[ODROID-PC] ubuntu12.04 64bit modify GCC4.6 to GCC4.4

Source: Internet
Author: User
Reference: http://blog.csdn.net/nseven/article/details/8288603
Before using the default ubuntu12.04 default GCC compiled source code, the results when debugging with GDB appeared cannot find the bounds of the current ... The error
View the information on the Internet, probably because the GCC version should be used gcc4.4 now the Ubuntu version changes to try again.

1. View GCC version and g++ version
Gcc-v
g++-V

2. Installing GCC and g++ version 4.4
sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib

3. Modify the GCC link in the/usr/bin directory
sudo mv gcc Gcc.bak
sudo ln-s gcc-4.4 gcc

4. Modify the g++ link in the/usr/bin directory
sudo mv g++ G++.bak
sudo ln-s g++-4.4 g++

5. View gcc and g++ version numbers
Gcc-v
G++-v

You can see that the version has changed.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

[ODROID-PC] ubuntu12.04 64bit modify GCC4.6 to GCC4.4

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.