Thank you! Sudakshina Das On Fri, May 31, 2013 at 12:51 AM, Marc Glisse <marc.glisse@xxxxxxxx> wrote: > > On Fri, 31 May 2013, Sudakshina Das wrote: > >> Hello all, >> >> I have been trying to use the C++ STL vector that is given in the >> header <vector> using gcc-4.7.2. >> However, when I tried using the function shrink_to_fit() using an >> object of a vector, I got an error saying : >> >> ‘class std::vector<cs_dfa*>’ has no member named ‘shrink_to_fit’ >> >> where cs_dfa is a structure that I have declared. > > > You need -std=c++11 or gnu++11 since this is a new C++11 feature. > > -- > Marc Glisse