Alex Rivera | Logout

Setting up a Programming Environment in Linux

Asked 2008-10-21T16:15:36.840
24

I recently started using Linux as my primary OS. What are the tools that I will need to set up a complete programming environment in Linux for C and C++?

Edit
Report

3 Answers

6

Among others you should also have gprof and valgrind ( or something in it's class ).

answered 2008-10-21T17:22:12.603
3

Seconding swilliams, I'd say the basics are:

  • an editor or IDE (I use vim),
  • a compiler (almost certainly gcc)
  • make, or maybe some other similar tool like ant if you want
  • a debugger (almost certainly gdb)
  • source control (I use subversion)
  • Standard unix utilities like grep and diff, but you have those already

Other than that, I'd say install as you go. Linux is more about little utilities that each do one thing than monolithic development environments that do everything. So if you find yourself needing something, you can always just install it, be that thing a memory profiler, a documentation generator, a bigger/smaller/more different editor, et cetera, et cetera.

answered 2008-10-21T16:27:28.593
1

Another great utility that you can use are *nix man pages. Each function in the C library has an associated man page.

For example:

man printf

man strncpy

...

answered 2008-10-21T18:00:06.253

Your Answer