[Qt-interest] Including sqlite3.c in a project when Qt was already compiled with SQLite

Robert Hairgrove evorgriahr at hispeed.ch
Wed Feb 23 10:51:30 CET 2011


Is there any danger in doing this? I noticed that some of the native
SQLite functions such as "sqlite3_vfs_find()" are otherwise not found,
even after including sqlite3.h in the sources. When I tried this, I
didn't get any linker warnings or errors about duplicate symbols, but I
know that it is often tricky to mix object and shared library modules
like this.

Also, it seems that Qt (actually, WebKit) has compiled SQLite with the
symbols SQLITE_OMIT_LOAD_EXTENSION and SQLITE_OMIT_COMPLETE defined
(look in WebCore.pro in the WebKit folder). Should I define these as
well when adding sqlite3.c to my project?




More information about the Qt-interest-old mailing list