Stdio.h: No such file or directory with Ubuntu

From Brandonhutchinson.com

Revision as of 16:42, 13 February 2008 by Hutch (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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
$
Personal tools