Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-11 Thread Marco van de Voort
On Fri, Jun 10, 2011 at 12:22:34PM +0400, Max Vlasov wrote: > > It depends. Does it also exist in FreeBSD and Mac OS ? If not, then I think > > this is not such a good idea. > > > Good point, > Looks like it's linux-only patch introduced at around 2004 > http://sourceware.org/ml/libc-hacker/2004-

Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-11 Thread zeljko
On Friday 10 of June 2011 10:22:34 Max Vlasov wrote: > > Looks like it's linux-only patch introduced at around 2004 > http://sourceware.org/ml/libc-hacker/2004-09/msg00083.html > so was not a good idea to update rtl\unix\dl.pp :) But would be ok to add it to documentation of dynlibs, that someon

Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-10 Thread Max Vlasov
2011/6/10 > > > >> I'm not sure this will be helpful for everyone, but maybe it is worth to >> add >> this constant to rtl\unix\dl.pp file? >> > > It depends. Does it also exist in FreeBSD and Mac OS ? If not, then I think > this is not such a good idea. > > Good point, Looks like it's linux-only

Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-10 Thread michael . vancanneyt
On Fri, 10 Jun 2011, Max Vlasov wrote: 2011/6/10 On Fri, 10 Jun 2011, Maxim Ganetsky wrote: 09.06.2011 13:17, Max Vlasov пишет: Finally found that this was because sqlite3 was in the uses list, so actually it was scenario when fpc linked sqlite dynamically and besides I did my own dy

Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-10 Thread Max Vlasov
2011/6/10 > > > On Fri, 10 Jun 2011, Maxim Ganetsky wrote: > > 09.06.2011 13:17, Max Vlasov пишет: >> >>> Finally found that this was because sqlite3 was in the uses list, so >>> actually it was scenario when fpc linked sqlite dynamically and besides >>> I did my own dynamic loading with my own

Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-10 Thread michael . vancanneyt
On Fri, 10 Jun 2011, Maxim Ganetsky wrote: 09.06.2011 13:17, Max Vlasov пишет: Finally found that this was because sqlite3 was in the uses list, so actually it was scenario when fpc linked sqlite dynamically and besides I did my own dynamic loading with my own unit of another version/file of

Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-09 Thread Maxim Ganetsky
09.06.2011 13:17, Max Vlasov пишет: Finally found that this was because sqlite3 was in the uses list, so actually it was scenario when fpc linked sqlite dynamically and besides I did my own dynamic loading with my own unit of another version/file of sqlite. So probably there was a conflict with s

Re: [Lazarus] Dynamic loading of a custom sqlite library

2011-06-09 Thread Max Vlasov
On Wed, Jun 8, 2011 at 6:27 PM, Max Vlasov wrote: > Hi, > > I encountered problems using dynamically loaded sqlite library with lazarus > on linux. > My post about this in the sqlite list is here: > http://www.mail-archive.com/sqlite-users@sqlite.org/msg61565.html > Maybe someone points me to the

[Lazarus] Dynamic loading of a custom sqlite library

2011-06-08 Thread Max Vlasov
Hi, I encountered problems using dynamically loaded sqlite library with lazarus on linux. My post about this in the sqlite list is here: http://www.mail-archive.com/sqlite-users@sqlite.org/msg61565.html Maybe someone points me to the right direction It's about loading sqlite library with dlopen,