C and C++ programming on Ubuntu 11.10 [closed]

2019-01-04 01:14发布

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?

标签: c++ c linux ubuntu
10条回答
Rolldiameter
2楼-- · 2019-01-04 02:01

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.

查看更多
放荡不羁爱自由
3楼-- · 2019-01-04 02:02

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)

查看更多
手持菜刀,她持情操
4楼-- · 2019-01-04 02:05

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.

查看更多
小情绪 Triste *
5楼-- · 2019-01-04 02:09

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, Makefiles and learning to use gdb are great ideas. There are plenty of neat flags to use with gcc also, for helping to debug your code, optimize it, produce assembly instructions, etc.

查看更多
登录 后发表回答