how to get c++ man pages on os x?

自古美人都是妖i 提交于 2020-01-14 08:39:27

问题


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

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.

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

回答1:


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


来源:https://stackoverflow.com/questions/32301363/how-to-get-c-man-pages-on-os-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!