Howto Install Man Pages for the C++ Standard Library

  1. find a copy of the tar ball of man pages. Here is a good place to start. If this mirror disappears, then goto http://gcc.gnu.org/mirrors.html select a mirror, and open the deoxygen directory.
  2. su to root
  3. select the version of documentation corresponding to your g++ compiler. For example libstdc++-man-3.3.tar.bz2.
  4. download the file, and unpack it, "tar zxvf libstdc++-man-3.3.tar.bz2"
  5. cd to uncompressed directory, "cd libstdc++-man-3.3"
  6. echo $MANPATH, and choose a place to put the new man pages. I chose /user/local/share/man/man3. Note that the directory, /usr/local/share/man, is the directory in the path. The man command, automatically searches on level below the paths listed in $MANPATH.
  7. Copy the files from the man3 directory which you have just decompressed, to the place on the manpath, "cp man3/* /usr/local/share/man/man3". Note that you will have to create the new directory, if it doesn't already exist.
  8. test it with "man std::vector". You should see the documentation for the std::vector class.