Stdio.h: No such file or directory with Ubuntu
From Brandonhutchinson.com
(Difference between revisions)
(New page: Even though you have the ''gcc'' compiler installed, the '''build-essential''' metapackage must be installed to compile most software. $ '''gcc test.c''' test.c:20:19: error: stdio.h: N...) |
|||
| Line 10: | Line 10: | ||
$ '''sudo apt-get install build-essential''' | $ '''sudo apt-get install build-essential''' | ||
| - | + | ||
$ '''gcc test.c''' | $ '''gcc test.c''' | ||
$ | $ | ||
Revision as of 16:40, 13 February 2008
Even though you have the gcc compiler installed, 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 $
