PDA

View Full Version : [ubuntu] please help, I need to install stdio.h etc!



mcweaver
November 20th, 2008, 09:56 PM
Hi

I'm running Ubuntu 7.10 and I've got gedit so I can program but the trouble is none of the standard libraries like <stdio.h> are recognised - whenever I compile a program I keep getting errors saying "error: stdio.h: No such file or directory" and I know my code is correct. How do I install these things I need?

Cheers :)

kostkon
November 20th, 2008, 09:57 PM
Hi

I'm running Ubuntu 7.10 and I've got gedit so I can program but the trouble is none of the standard libraries like <stdio.h> are recognised - whenever I compile a program I keep getting errors saying "error: stdio.h: No such file or directory" and I know my code is correct. How do I install these things I need?

Cheers :)
Install the build-essential (http://packages.ubuntu.com/gutsy/build-essential) package and you should be fine.

mcweaver
November 20th, 2008, 10:00 PM
um, how? Sorry this is a bit dumb/retarded but I'm new to Linux and programming..... thanks

kostkon
November 20th, 2008, 10:26 PM
um, how? Sorry this is a bit dumb/retarded but I'm new to Linux and programming..... thanks
Check this nice how-to (http://www.psychocats.net/ubuntu/installingsoftware) on how to install software in Ubuntu. Hope that helps.

In this case, just use Synaptic. Open Synaptic, search for the package, left click on it, select it for installation and then click the Apply button that is on the toolbar. And that's it.