How to start C/C++ Programming in Ubuntu?

Posted by Joys of Programming on in C/C++

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

Reblog this post [with Zemanta]


Tags: , , , , ,

Comments:

1 Comment

  • Hi, there’s a typo. It should be sudo apt-get install manpages manpages-dev instead of sudo apt-get install manapages manapages-dev

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.