[Qt-interest] SQLite: no functions are exported

Thiago Macieira thiago at kde.org
Fri Feb 25 18:36:07 CET 2011


On Friday, 25 de February de 2011 17:37:42 Robert Hairgrove wrote:
> I'm a little wary about linking directly to the SQLite library ... how
> would I do this? It isn't safe to have both the plugin AND the sqlite3.c
> source in my application because then I have two instances of the
> library with all of the potential problems in memory allocation, etc.

$ ldd $QTDIR/plugins/sqldrivers/libqsqlite.so
        linux-gate.so.1 =>  (0xffffe000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb7769000)
[others]

Don't include sqlite3.c in your program. Link to the same sqlite3 library that 
the plugin links to.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110225/7bdd7801/attachment.bin 


More information about the Qt-interest-old mailing list