Originally Posted by Rocket Lawnchair
Eclipse is my personal favorite, and the one I use everyday. It also has support for Java. Qt Creator is good too, but Code::Blocks isn't that great. GCC is the default and best C/C++ compiler available for Linux.
Also, installing an IDE will pull all the needed dependencies for you, so installing build-essentials, a compiler, or anything else manually is unnecessary. If you choose to use a text editor however, you will need to install build-essentials manually.
I'm not sure I'd say GCC was the "best" C++ compiler for Linux. But then it depends in what context you're defining "best".
GCC is a good compiler and it's definitely the most widely used. However it doesn't always perform the best in benchmarks - both in compile times and subsequent ELF execution time (which is designed to demonstrate a compilers optimisation abilities).
However these benchmarks often equate to little more than an academic exercise and for the time being, GCC is king. So it's good practice to at least test your code against that GCC.