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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>