如何在OS X上获取C ++手册页? [英] how to get c++ man pages on os x?

查看:104
本文介绍了如何在OS X上获取C ++手册页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu中,安装libstdc ++ 6-x.x-doc后,可通过man获得文档,例如libstdc ++-4.8-doc:

In Ubuntu, after install libstdc++6-x.x-doc, docs are available via man, for example for libstdc++-4.8-doc:

man std::list
man std::weak_ptr
man std::ios_base

是否可以在OSX上为c ++安装手册页(使用brew或任何其他方式)?专门要求手册页的原因是为了使我可以使用SHIFT-K从vim访问它们.

Is it possible to install man pages for c++ (using brew or any other means) on OSX? The reason for specifically requiring man pages is so that I can access them from vim using SHIFT-K.

注意:我正在使用g ++的XCode版本:

Note: I'm using the XCode version of g++:

snowch$ g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

推荐答案

您可以从这里.只需运行以下命令:

You can install those man pages from here. Just run the following commands:

$ git clone https://github.com/jeaye/stdman
$ cd stdman
$ ./configure
$ make install # as a user with appropriate permissions to install

这篇关于如何在OS X上获取C ++手册页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆