I am attempting to get my feet wet with gcc and linux. I was simply creating a simple program, using Kate, from a tutorial. The 'Hello.c' program file is :
- Code: Select all
#include <stdio.h>
void main
{
printf("Hello World\n");
}
I created a directory named "Temp" under >home>mydir>Projects, and stored Hello.c there.
If I open terminal and go to the "Temp" directory and type "gcc Hello.c -o hello1", the response is
"fatal error: stdio.h: No such file or directory"
My first thought was that stdio.h was not in the PATH, so I added it and checked that the PATH was updated by typing
"echo $PATH"
Another attempt to compile produced the same error message.
That is where I am now. I am hopefully missing something simple.