使用小型数据库SQLite3就要http://www.sqlite.org/download.html下载他的源码。
直接下载官方编译好的dll文件。
sqlitedll-3_5_1.zip (182.95 KiB) | This is a DLL of the SQLite library without the TCL bindings. The only external dependency is MSVCRT.DLL. |
这个时候发现压缩包里只有dll和def文件。
那么就用以下方式生成lib文件吧:
1、在命令行执行:
dumpbin /exports sqlite3.dll > sqlite3.def




















































































































































































2、编辑 sqlite3.def 文件,使之格式与.def文件格式一致。比如:
将前面的编号去掉。
3、在命令行执行:
lib /def:sqlite3.def /machine:i386 /out:sqlite3.lib