How do I select a version of libstdc+ to link against?

Jonathan Wakely jwakely.gcc@gmail.com
Thu Sep 22 10:58:00 GMT 2011


On 22 September 2011 11:46, David Aldrich wrote:
>
> Thanks for your replies.  I am sorry that my post was inappropriate for this list, but if I explain my problem further I think you will find some relevance.

It's still not about the development of libstdc++, so the gcc-help
would be more appropriate.

> If the Ubuntu case is using that library, that could explain the failure.

Why not use ldd to be sure?


Anyway, the right way to write that loop is:

      while (iss>>std::boolalpha>>b)
       {
               myVect.push_back(b);
       }

It seems to be the most common error with iostreams to try and test
stream states explicitly and unnecessarily, which leads to verbose and
complicated code.



More information about the Libstdc++ mailing list