I am trying to add a custom sqlite3 regexp function into my Qt application (as recommended by this answer). But as soon as I call the sqlite3_create_funct
regexp
sqlite3_create_funct
You need to call sqlite3_initialize() after you get the database handle from Qt, according to this forum post.
sqlite3_initialize()
... sqlite3 *db_handle = *static_cast<sqlite3 **>(v.data()); if (db_handle != 0) { // check that it is not NULL sqlite3_initialize(); ...
This solves the issue.