List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:May 1 2005 6:22pm
Subject:Re: BadQuery Exception what() problems
View as plain text  
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

Thread
BadQuery Exception what() problemsAndreas Volz1 May
  • Re: BadQuery Exception what() problemsChris Frey1 May