Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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

gcc --version

Hope this helps

share|improve this answer
add comment

Your Answer

 
discard

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.