How can I know which version of the C++ "standard library" is installed?

28,150

Solution 1

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

Solution 2

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

gcc --version

Hope this helps

Share:
28,150

Related videos on Youtube

Alessandro Jacopson
Author by

Alessandro Jacopson

I am a programmer.

Updated on September 18, 2022

Comments

  • Alessandro Jacopson
    Alessandro Jacopson almost 2 years

    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.

  • Tachyons
    Tachyons over 11 years
    This method won't work if he installed g++ from source
  • psusi
    psusi over 11 years
    @tachyons, then he wouldn't be asking the question ;)
  • kirill_igum
    kirill_igum almost 8 years
    doesn't mean that the c++ library is installed
  • Derek Eden
    Derek Eden about 4 years
    lol enough said