From: Chris Frey Date: May 1 2005 6:22pm Subject: Re: BadQuery Exception what() problems List-Archive: http://lists.mysql.com/plusplus/4326 Message-Id: <20050501182258.GA28835@netdirect.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sun, May 01, 2005 at 02:13:25PM +0200, Andreas Volz wrote: > Hi, > > I could compile the examples only if I comment some lines. g++ doesn't > like the what() call. See the message from g++: [snip] > I use mysql++-1.7.26. Why does this happen? I looked into the > exception.h and there's a what() call. So I don't understand why it > doesn't work. That version still had the old style mysql++ exceptions. If you want the standard ones, you need to build with --use-exception specified on the ./configure command line. Or, just upgrade to 1.7.34, which uses only C++ std::exception-style exceptions. - Chris