Greetings All-

I purchased the C Primer Plus by Stephen Prata, after reading the C Book Recommendations Thread on this forum.

I am a beginner at C. My OS is Ubuntu.

I am running the example on page 24 in the book and below is the code.

Code:
#include <stdio.h>
int main(void)
{
	int num;
	num = 1;
	printf("I am a simple ");
	printf("computer. \n");
	printf("My favorite number is %d, because it is first. \n", num);
	return 0;

}

Below is the error message I am getting when I do gcc first.c

first.c:1:19: error: stdio.h: No such file or directory
first.c: In function ‘main’:
first.c:6: warning: incompatible implicit declaration of built-in function ‘printf’


I did a google search with the search string as "stdio.h: No such file or directory", but did not find any valuable recommendations.

If someone could give some suggestions or point me in the right direction, I would greatly appreciate it.

Cheers
MindLess