#include
main()
{
printf ("Hello, world!\n");
}
But, when I tried to compile it:
gcc hello.c
I got this:
**stdio.h: No such file or directory**
It seems that there are a few libraries that are //not// installed by default. It's easy to add them, though:
sudo apt-get install build-essential
After doing this, the code compiles.
{{tag>c_and_cpp}}