Ubuntu – C stdio.h no such file or directory

16.04gcc

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

Run:

sudo apt install --reinstall gcc-5.4

This reinstalls gcc. Reinstalling sometimes fixes problems.