List:MySQL++« Previous MessageNext Message »
From:Andreas Volz Date:May 1 2005 12:13pm
Subject:BadQuery Exception what() problems
View as plain text  
Hi,

I could compile the examples only if I comment some lines. g++ doesn't
like the what() call. See the message from g++:

deadline.cpp: In function `int main(int, char**)':
deadline.cpp:75: error: `what' undeclared (first use this function)
deadline.cpp:75: error: (Each undeclared identifier is reported only
once for    each function it appears in.)

This is the code:
...
    catch (BadQuery& er) {
        // Handle any connection or query errors that may come up
        cerr << "Error: " << er.what() << endl;
        return -1;
...

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.

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