logo       
Google Custom Search
    AddThis Social Bookmark Button

exception problem when building on solaris 2.8 with gcc 3.3.2: msg#00041

Subject: exception problem when building on solaris 2.8 with gcc 3.3.2
Hi Warren and other experts over there,

I am still struggling with exception handling in mysql++ on Solaris2.8
with gcc/g++ 3.3.2. In examples/simple1.cc, I added the following code
at the beginning of main() for test:

Struct My_Err {
};
...

Try {
        Throw My_Err();
} catch(...) {
        Cerr << "got my exception...\n";
}

And it works; my exceptions are caught successfully.

Since simple1.cc always coredumps during connection setup, I add some
printouts in Connection::connect() method in sqlplusint/connection.cc,
and it shows that it crashes right at the point where exception is
thrown. And I added the above code segment to connection.cc and change
the code to throw My_Err instead of BadQuery; It still crashes.

Any idea why the exception handling inside connetion.cc behaves
differently? I am suspecting it is related to the Makefile setting. It
seems it is not doing the straight forward compiling using g++, but did
some tricks with libtool etc. How could I get a Makefile for just a
simple g++ compile/link of mysql++ lib???

Thanks in advance

Yigong


------------------------------------------------------------------------------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.  
If you have received it in error, please notify the sender
immediately and delete the original.  Any unauthorized use of
this email is prohibited.
------------------------------------------------------------------------------------------------
[mf2]

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>