如何在Ubuntu 10.04中安装C ++ API文档?

我已经安装了gcc。

man 2 cout

 root@kota-laptop:/# man 2 cout No manual entry for cout in section 2 root@kota-laptop:/# man 2 printf No manual entry for printf in section 2 See 'man 7 undocumented' for help when manual pages are not available. 

安装gcc不会带入开发者手册。

sudo aptitude install manpages-dev manpages-posix-dev

这将安装POSIX和C开发的文档。

因为Ubuntu的软件包列表网站是很奇怪的

对于C ++文档,您可以安装libstdc ++ 6-4.3-doc软件包或libstdc ++ 6-4.4-doc,具体取决于您安装的GCC(用于模糊命名的hooray)。

  • 4.3: http : //packages.ubuntu.com/search?keywords=libstdc%2B%2B6-4.3-doc
  • 4.4: http : //packages.ubuntu.com/search?suite=default&section=all&arch=any&searchon=names&keywords=libstdc%2B%2B6-4.4-doc

我不使用Ubuntu,所以我只能假设它是: sudo aptitude install libstdc++6-4.4-doc

编辑下面的东西是crufty,留作参考

但是,Ubuntu没有任何C ++的手册来进行简单的安装。 为此,您必须从GNU libstdc ++文档中自行安装手册页,可在以下FTP站点获取:ftp: //gcc.gnu.org/pub/gcc/libstdc++/doxygen/

你会想下载适合你的libstdc ++版本的。

如果你打算使用Ubuntu作为开发工作站,你的第一站应该是:

 sudo apt-get install build-essential 

正如birryree指出的那样,你可能得不到所有你需要的东西,但是这个第一步将会为你节省一些麻烦。