From: Warren Young Date: August 16 2005 6:09pm Subject: Re: how to fetch a row? List-Archive: http://lists.mysql.com/plusplus/4746 Message-Id: <43022BEE.208@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit ZeeGeek wrote: > > mysqlpp::Connection con(false); > con.connect("mysql_cpp_data", "localhost", "test", "test"); > mysqlpp::Query query = con.query(); > query << "select * from stock"; > mysqlpp::ResUse res = query.use(); > mysqlpp::Row row; > while (row = res.fetch_row()) { > std::cout << row["item"] << std::endl; > } I replaced the code in usequery's try block with your code, and it produced just what I expected it to. Try that, and rebuild the examples within the MySQL++ tree.