View Full Version : C basic question

April 6th, 2007, 04:49 AM

Probably a dumb question...
I was trying to write a small C program, saved the C file in my home directory, and when I compiled (gcc), I got: "error: stdio.h: no such file or directory"

Do I need to install something to make it work ? I'm used to this working out of the box on linux distros...

Thanks for your help

April 6th, 2007, 04:52 AM
You probably have not installed libc6-dev. To get the basic set of C/C++ tools and libraries, install the package build-essential.

$ sudo apt-get install build-essential