![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
catch(exception& e) { cout << "DAMN!" << endl; } |
#3
| |||
| |||
|
|
Jonatan Taminau wrote: catch(exception& e) { cout << "DAMN!" << endl; } What does it say if you replace that cout statement with: cout << typeid(e).name << endl; ? (Syntax may be wrong...adjust as necessary.) |
#4
| |||
| |||
|
|
I get: PSt9exception |
#5
| |||
| |||
|
|
...and if you say: cout << e.what() << endl; instead? |
#6
| |||
| |||
|
|
Which is ok, the only strange problem is that it's of type exception so I can't do any more robust error handling... |
#7
| |||
| |||
|
|
On Fri, Oct 14, 2005 at 09:07:50AM +0200, Jonatan Taminau wrote: Which is ok, the only strange problem is that it's of type exception so I can't do any more robust error handling... I don't think you mentioned this earlier, but what compiler are you using? And just to make sure, I assume there are no other mysql++ headers in various spots on your system that might be getting included? - Chris |
#8
| |||
| |||
|
|
I'm working in Xcode 2.1, which uses the GNU C/C++ Compiler 4.0. The only file I include is <mysql++.h> and I had to include the following linker flags: -bind_at_load -lmysqlclient -lmysqlpp |
|
BTW, My apologies for creating an unnecessary new thread but how can you reply to messages without being subscribed to the mailinglist? (I just send mails to the plusplus (AT) lists (DOT) mysql.com address with subject the name of the thread) |
#9
| |||
| |||
|
|
Is it possible to compile without -bind_at_load? Just to eliminate possible variables here. Without that flag I just get a warning message: |
![]() |
| Thread Tools | |
| Display Modes | |
| |