The solution that the GCC standard library cannot find when there is no stdio.h file exists under Linux

Source: Internet
Author: User

First explain my system configuration: Ubuntu 12.04 gcc 4.6.3

A few days did not use Ubuntu, today took out the program, just started to compile a uboot1.1.6 code. stdio.h: There is not a file or directory error, because I am using the ARM-LINUX-GCC cross-compilation, so I just started to suspect that is not my compiler has a problem. Then I went to compile a previously written web program

With Gcc-o test test.c Then there is the stdio.h: There is not a file or directory error . then on all kinds of Google, Baidu. The Final Solution is:

My gcc did not know why the Libc6-dev was missing, and then it was installed, and it was not loaded at first. The reason is because once I restore the source of Ubuntu to the default, so the update is not, also can not download. So I changed the source of the software to 163. Reference: gaoke0820.blog.163.com/blog/static/216649652012460130314/

After the change,

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install Libc6-dev

It should be all right after loading. After all I've done, GCC can be used again. Hope to see help, the solution to this problem online does not have a very detailed statement.

Summary: 1, pay attention to the problem of the software source 2, installation Libc6-dev

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.