[ubuntu-in] GCC 4.0 (C Compiler) on Kubuntu 6.06
Roshan
d_rosh2001 at yahoo.co.in
Mon May 21 16:07:55 BST 2007
List,
I had to install GCC C compiler in Kubuntu 6.06, and
found that it isn't installed with the default setup.
I found out that GCC 4.0 base system (whatever that
is) is installed.
I used Adept to install GCC C compiler, assuming it
would setup everything that I need to run C programs.
You can run the command
(sudo apt-get install gcc-4.0) to install GNU C
compiler.
Assuming that the installation of the compiler is with
all the essential parts to run C programs, I wrote the
traditional "HelloWorld" program and compiled it, also
passing a parameter to generate a specific output
file.
The result: "Error: error: stdio.h: No such file or
directory"
Logged on to the #gcc channel on IRC and I was told to
install libc6-dev.
(sudo apt-get install libc6-dev)
Now, this is just the C libraries. There are few
other packages that would have to be installed for
additional support of programming languages.
What next? Compiled and Executed the HelloWorld
Program.
Hope this experience helps, newbies like me. :)
For C++, I guess one needs libstdc++6-4.0-dev.
For those with loads of data transfer capabilites (no
caps) can use the following command
sudo apt-get install build-essentail.
Comments on this post are welcome.
--
FSF of India Associate Fellow - http://www.gnu.org.in
S K Somaiya College of ASC- http://www.somaiya.edu/sksasc
ubunturos @ freenode
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
More information about the ubuntu-in
mailing list