Stdio.h: No such file or directory with Ubuntu
From Brandonhutchinson.com
(Difference between revisions)
| Line 1: | Line 1: | ||
| - | Even though you have | + | Even though you may have a C compiler installed (e.g., ''gcc''), the '''build-essential''' metapackage must be installed to compile most software. |
$ '''gcc test.c''' | $ '''gcc test.c''' | ||
Current revision
Even though you may have a C compiler installed (e.g., gcc), the build-essential metapackage must be installed to compile most software.
$ gcc test.c test.c:20:19: error: stdio.h: No such file or directory test.c:21:19: error: errno.h: No such file or directory test.c:22:20: error: stdlib.h: No such file or directory test.c:23:20: error: string.h: No such file or directory test.c:24:20: error: malloc.h: No such file or directory ...
$ sudo apt-get install build-essential $ gcc test.c $
