Stdio.h: No such file or directory with Ubuntu

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Current revision (16:42, 13 February 2008) (edit) (undo)
 
Line 1: Line 1:
-
Even though you have the ''gcc'' compiler installed, the '''build-essential''' metapackage must be installed to compile most software.
+
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
$
Personal tools