I am trying to build SQLite3 plugin for Qt since I need to use SQLite specific hook functions. I have prebuilt Qt 6.5.1 on windows machine mingw_64 version. I have built plugin which works with qt functions but gives me undefined reference when I am trying to use any SQLite3 function.
I have tried the following from what Qt docs suggests:
Maybe someone can tell me on what I am doing wrong. Thanks in advance.
So the problem was that you should link to the SQLite library that you were building your plugin from (as the person in comments mentions). I thought that linkage to Qt SQLite was enough and I was wrong.