Re: dynamically linking one of mysq, postgresql or sqlite3

2009-09-14 Thread Bob Friesenhahn
On Tue, 15 Sep 2009, santilistas wrote: It seems to me that the value 0x92753d0 for the connection created by the library is suspicious. Can it be the reason for my segfault? I think that you should do your own debugging. It is easy enough to verify if the returned pointers are correct. As

Re: dynamically linking one of mysq, postgresql or sqlite3

2009-09-14 Thread santilistas
I've done so, following the wonderful tntdb library. After a great deal of prouding aroung, I have managed to build and load the shared library, and create an object through a C function in the shared library: extern "C" { void *new_connection() { MySql_dbConnection *new_conn = new MySql_dbConn

Re: dynamically linking one of mysq, postgresql or sqlite3

2009-09-11 Thread Bob Friesenhahn
On Fri, 11 Sep 2009, santilin wrote: Hi, I'm quite new to libtool though I have read the tree GNU manuals: automake, autoconf and libtool. I want to solve the typical problem of loading dinamically one of the sql servers drivers from my own shared library. I know I have to create a common inte