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