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.


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

| improve this answer | |
  • This method won't work if he installed g++ from source – Tachyons Oct 14 '12 at 13:25
  • 2
    @tachyons, then he wouldn't be asking the question ;) – psusi Oct 14 '12 at 13:27
  • lol enough said – Derek Eden May 5 at 18:16

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

gcc --version

Hope this helps

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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