List:MySQL++« Previous MessageNext Message »
From:Ina J. Date:August 21 2011 8:56am
Subject:Re: MySQL++ not working with libstdc++6
View as plain text  
But the same code has been working without problems before the libstdc++6
was updated. But any suggestions how to fix it?? Or avoid it?? Should I use
the other constructor for a Query?? It's pretty obvious I have to create a
query to get the data from the MySQL server.

-Ina

2011/8/19 Jonathan Wakely <mysql@stripped>

> 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