List:MySQL++« Previous MessageNext Message »
From:Jonathan Wakely Date:August 19 2011 2:14pm
Subject:Re: MySQL++ not working with libstdc++6
View as plain text  
On 19 August 2011 15:10, Linda Messerschmidt wrote:
> On Fri, Aug 19, 2011 at 7:18 AM, Ina J. <inarvaj@stripped> wrote:
>> The complain is coming from this line of my code:
>> mysqlpp::Query q = connection.query("SELECT * from Meter");
>> and the connection has been connected successfully earlier.
>
> I believe this is not correct.  Assigning something with a basic_ios
> inside never works.

That isn't an assignment, it's a copy construction.

> Try:
>
> mysqlpp::Query q(connection.query("SELECT * from Meter"));

This is exactly equivalent.

The error seems to indicate a race condition in the initialization of
the std::ios_base base class.  I've seen someone report a similar
error in that libstdc++ code before, but I think it's correct (I can't
see a problem anyway) so it could be user error, but I'm not sure.
Thread
MySQL++ not working with libstdc++6Ina J.19 Aug
  • Re: MySQL++ not working with libstdc++6Linda Messerschmidt19 Aug
    • Re: MySQL++ not working with libstdc++6Jonathan Wakely19 Aug
      • Re: MySQL++ not working with libstdc++6Ina J.21 Aug
        • Re: MySQL++ not working with libstdc++6Ina J.22 Aug
          • Re: MySQL++ not working with libstdc++6Adrian Cornish22 Aug
            • Re: MySQL++ not working with libstdc++6Warren Young22 Aug
              • Re: MySQL++ not working with libstdc++6Adrian Cornish22 Aug
                • Re: MySQL++ not working with libstdc++6Ina J.23 Aug
                  • Re: MySQL++ not working with libstdc++6Ina J.23 Aug
                    • Re: MySQL++ not working with libstdc++6Jonathan Wakely23 Aug
                      • Re: MySQL++ not working with libstdc++6Ina J.23 Aug