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