I'm using a Linux computer with the yum package manager. I saw I could install gcc using just the following command:
yum install gcc
So, I went ahead and did so. However, when I wrote a simple "Hello world" program and typed "gcc hello.c" into the command prompt, I got this message:
error: stdio.h: No such file or directory
...and then it goes on to complain about the implicit declaration of printf. I'm not sure what's wrong, although my guess is that yum for some reason forgot to fetch the libraries to go along with the compiler. Could someone give me some advice on how to fix this?
That is the programming board. I asked a question about software I'm having trouble with on the tech support board, which is where we are now.
yum install libc6-dev
>>5
whoops, had a brainfart and assumed you were using that hot new variant of ubuntu that has yum instead of apt-get.
probably fedora, then?
try yum install glibc-dev