catalin wrote:I've downloaded master code from github and built debug win32 with VC12 and wxW3.1 (I've modified the project file to link against the correct libs).
I will try to add direct support for wxWidgets 3.1 in the future.
When running minimald.exe I get the following message and the app exits:
The procedure entry point sqlite3_compileoption_used could not be located in the dynamic link library sqlite3.dll.
Does anybody have any idea what might go wrong?
I suspect that an outdated SQLite DLL was found on the search path first.
The function sqlite3_compileoption_used
was introduced in SQLite3 Version 3.6.23
. That is, if the entry point is missing the found DLL represents an older version of SQLite.
It is important to compile wxSQLite3 using the header file and the link library of the SQLite3 version that will be used with the application. In case of dynamically loading the SQLite DLL, wxSQLite3 could be enhanced to check the SQLite version at runtime. However, if a link library was used, this is not possible, because the operating system loads the DLL (and emits an error message in case of problems), before wxSQLite3 gets a chance to check the SQLite version number.
Although wxSQLite3 supports the use of SQLite3 DLLs, I would strongly recommend to bundle SQLite statically compiled with your application. That way your application would always use the expected version of SQLite.