1.在 sqlite 官网 https://www.sqlite.org/download.html?下载两个文件:
sqlite-amalgamation-3180000.zip 和?sqlite-dll-win32-x86-3180000.zip
2.新建一个 win32 的动态链接库的空项目
3.将?sqlite3.def,sqlite3.c,sqlite3.h 和 sqlite3ext.h 四个文件复制到项目目录下
4.编译之后生成了 dll 文件
5.Configuration Properties—>C/C++—>Preprocessor—>Preprocessor Definitions 中添加
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA
Configuration Properties—>Linker—>Input—>Module Definition File 中添加
sqlite3.def
6.重新编译,生成了 dll 和 lib 文件。