Skip to main content

Ubuntu Linux: C and C++ Development tools

Ubuntu - Development tools

I spent many hours figuring out why my freshly installed Ubuntu Linux 5.10 virtual machine doesn't compile a very simple C program, even after I use "apt-get install gcc" to install the GNU C compiler. Ubuntu keeps on saying it can't even find the header file "stdio.h".

Finally I found the answer at Ubuntu FAQ page here. The site says that C and C++ development were deliberatedly excluded from the typical installation and we need to use
apt-get install build-essential
to install all the neccessary compilers, headers and libraries. In other words, installing only the gcc package isn't enough.


Keywords: , ,

Comments

Anonymous said…
thank you thank you thank you... I've been pulling my hair out wonder how gcc didn't include stdio.h
Iggy said…
THANKS!! This is my first time working with Ubuntu and it's very different than other distros.