UbuntuThis forum is for the discussion of Ubuntu Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Which package do I need to install to get the standard library files for c programming?
Currently, not even
works. I thought the standard lib files automatically were added when installing the OS, but I guess I was wrong.
(I used "gcc <filename>" just as a test. I know that the binary file is then named "a.out")
Okay, I think I fixed it, but I don't know how.
I tried "gcc-4.0" instead of just "gcc", and then it compiled. I seems the libraries were installed after all. But what I don't understand
is WHY this worked. "gcc" and "gcc-4.0" is exactly the same, as far as I can tell: running "gcc --version" and "gcc-4.0 --version" displays the
exact same information. Anyways, now even "gcc <filename>" works.
I'll try and build a larger project, and see what happens.
i am also trying to compile a simple helloworld program. i have all the gcc things in the synaptic pakage manager installed. i open a termainal window and went to the directory where the helloworld.c program is. when i use gcc helloworld.c i get the following:
error: stdio.h: No such file or directory. i get the same error when i use $gcc -o helloworld helloworld.c