C stdio.h No Such File or Directory Error in Ubuntu 16.04


gcc worked perfectly fine until i updated to ubuntu 16.04 and now when ran
gcc file.c an error shows up:

file.c:1:18: fatal error: stdio.h: No such file or directory
compilation terminated.

I checked if stdio.h was there and it was still in /usr/include/stdio.h

Please Help!

Best Answer


sudo apt install --reinstall gcc-5.4

This reinstalls gcc. Reinstalling sometimes fixes problems.