Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to install the C++ standard library documentation (following the answers in Download C++ reference) but I do not know which version of library is installed in my Ubuntu.

share|improve this question
up vote 1 down vote accepted

Fire up synaptic and search for libstdc++ and see which version is installed, or run apt-cache search -n libstdc++ to see what versions are known, then you can check which one(s) are installed with apt-cache policy libstdc++-XXXX

share|improve this answer
This method won't work if he installed g++ from source – Tachyons Oct 14 '12 at 13:25
@tachyons, then he wouldn't be asking the question ;) – psusi Oct 14 '12 at 13:27

Simple way to find the version of C++ standard library is

gcc --version

Hope this helps

share|improve this answer
doesn't mean that the c++ library is installed – kirill_igum Jun 29 at 17:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.