I've recently installed Ubuntu 11.10 and along with it the CodeBlocks IDE and I am aware that I have gcc and the std libraries by default.
My questions are:
- Do you you have any tips for a new C++ programmer on Ubuntu?
- Any libraries I should get from the start?
- A really good IDE I'm missing? (YMMV but I prefer to work in IDE's)
- Any programming boons or traps I should be aware of from the start?
Library: I recommend you to use Boost. You can find many libraries in it. IDE: Eclipse and QTCreator are good IDEs, but I think it is also very important to use text editor + makefile. Vim, Emacs or Sublime Text is good choice. Always remember to backup your code.
I think Netbeans is good. Same UI in Microsoft Windows and Linux. Built-in version Controller and installed Git by default. No extra library added (as oposit of QT)
If you are familiar with the command line you can use an editor like vim and gcc/g++ to compile your code, learning make svn git is also recommend.
In case you are not familiar with the command line or you prefer using the UI :NetBeans is also a good IDE you can use to develop in c/c++ and java.
To install netbeans: open firefox and point to apt://netbeans I hope this will help you.
Boost provide a whole bunch of libraries that are commonly used and can come in handy. Anyway, I'm not really sure this questions fits in too well on a Q&A board.
EDIT: As suggested by Basile,
Makefile
s and learning to usegdb
are great ideas. There are plenty of neat flags to use withgcc
also, for helping to debug your code, optimize it, produce assembly instructions, etc.