| 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++6 | Ina J. | 19 Aug |
| • Re: MySQL++ not working with libstdc++6 | Linda Messerschmidt | 19 Aug |
| • Re: MySQL++ not working with libstdc++6 | Jonathan Wakely | 19 Aug |
| • Re: MySQL++ not working with libstdc++6 | Ina J. | 21 Aug |
| • Re: MySQL++ not working with libstdc++6 | Ina J. | 22 Aug |
| • Re: MySQL++ not working with libstdc++6 | Adrian Cornish | 22 Aug |
| • Re: MySQL++ not working with libstdc++6 | Warren Young | 22 Aug |
| • Re: MySQL++ not working with libstdc++6 | Adrian Cornish | 22 Aug |
| • Re: MySQL++ not working with libstdc++6 | Ina J. | 23 Aug |
| • Re: MySQL++ not working with libstdc++6 | Ina J. | 23 Aug |
| • Re: MySQL++ not working with libstdc++6 | Jonathan Wakely | 23 Aug |
| • Re: MySQL++ not working with libstdc++6 | Ina J. | 23 Aug |
