In the past I have dabbled a bit with c and every once in a while I mess around with some web programming i.e. javascript, xhtml, but now i actually want to start programming for real and I decided to start by learning C seeing as how it is the base for c . Right now I am using Ubuntu Linux and I think that since I am not a very adept Linux user it would be a better learning experience. My problem is that I want to compile the most basic of C programs and I can't because I dont have the C libraries. So when I try to compile a program with "#include <stdio.h>" in it the compiler tells me:
samp.c:1:19: error: stdio.h: No such file or directory
samp.c: In function ‘main’:
samp.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
I am using the gcc complier from the command line, so my question is how do I get the library files necessary to get started programming in C.
Tags: