Envergure
November 26th, 2007, 07:52 PM
I can't compile anything because the compiler can't find any headers.
// Hello.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
printf ("Hello World!");
return 0;
}
When I compile I get this:
Error: stdio.h: No such file or directory.
Error: stdlib.h: No such file or directory.
Warning: Implicit declaration of function 'printf'
Warning: Incompatible implicit declaration of built-in function 'printf'.
Compiled by Geany with command
gcc -Wall -c "Hello.c"
Other IDEs do the same thing.
Do I have to install something to get the headers?
I've been using C under win32 for some time, but this is my first time using Linux. I have a book about Linux programming (not sure why), but it's old and not very well-written.
// Hello.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
printf ("Hello World!");
return 0;
}
When I compile I get this:
Error: stdio.h: No such file or directory.
Error: stdlib.h: No such file or directory.
Warning: Implicit declaration of function 'printf'
Warning: Incompatible implicit declaration of built-in function 'printf'.
Compiled by Geany with command
gcc -Wall -c "Hello.c"
Other IDEs do the same thing.
Do I have to install something to get the headers?
I've been using C under win32 for some time, but this is my first time using Linux. I have a book about Linux programming (not sure why), but it's old and not very well-written.