How to start C/C++ Programming in Ubuntu?
If you want to start C/C++ programming in Ubuntu, there are various steps involved. When you download Ubuntu, it consists more of packages related to daily desktop activities, rather than from the development perspective. But thanks to the huge amount of community support and plenty of packages, this issue can be solved with few of the following commands.
To start C/C++ programming, the first and foremost requirement is the GCC compiler. To install GCC Compiler
sudo apt-get install gcc
To access the standard library functions like printf, scanf, fscanf, fprintf, the following commands should be run
sudo apt-get install build-essential
The next most important thing is the manual pages. The most important manual which is the best resource and also easier to access for offline usage is the man pages
By default, the man pages are installed. But these man pages mostly correspond to the commands available in your system like ls, cat.
As you would be aware, the man pages are classified into 8 categories. Man pages 1 corresponds to the commands as described above.
Man pages 2 and 3 are related to system programming and regular programming. In short, they are quite useful for software development.
To install the man pages.
sudo apt-get install manapages
For development related man pages, run the following command
sudo apt-get install manapages-dev
Note: To install these packages, you must be connected to the internet
Comments:
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=f6aae56c-4d60-4deb-9903-b6279746179d)
Hi, there’s a typo. It should be
sudo apt-get install manpages manpages-devinstead ofsudo apt-get install manapages manapages-dev