C Programming | error: stdio.h: No such file or directory

I was trying to write a simple program in c and it kept on showing the following error whenever i tried to compile it

“error: stdio.h: No such file or directory”

After a little googling I found that C standard libraries are stored in libc6-dev, This want installed in my machine. Installing libc6-dev solved the problem.

To intall libc6-dev In ubnutu type in the follwoing in the terminal

sudo apt-get install libc6-dev

Subscribe / Share

Article by Satish Gandham

Authors bio is coming up shortly. Satish Gandham tagged this post with: , , , Read 10 articles by Satish Gandham
It's very calm over here, why not leave a comment?

Leave a Reply




Tip

When downloading untested code, make sure you have antivirus software installed.