1.SQLite is a fully independent, open-source file database engine that does not require a server, no configuration, and no support for SQL. Source code and support can login:http://www.sqlite.org/
1.1. Download the Sqlite3.dll and sqlite3.def files, download the sqlite-dll-win32-x86-3080803 file on the download page
1.2. Download the sqlite3.h and download the sqlite-amalgamation-201503091040 file on the download page.
2. The code compiles, because the SQLite download file only provides the DEF file and does not provide the Lib file. So before you can formally use SQLite, you need to compile the Lib file first. The methods and steps for compiling the Lib file are given below.
2.1 Open the command-line tool with VS comes with.
2.2 In the above command line (note the space): (Small tip, enter Lib/def: After you can just unzip the sqlite3.def directly into the command line interface, and then add/machine:ix86)
D:\Program Files\Microsoft Visual Studio 10.0\vc>lib/def:F:\TDdownload\sqlite-dll-win32-x86-3080803\ Sqlite3.def /machine:ix86
Enter compile complete.
2.3 Build Sqlite3.lib, Sqlite3.exp file after compilation, the file path is: C:\Program Files\Microsoft Visual Studio 9.0\VC
Reference http://blog.sina.com.cn/s/blog_a459dcf501013pwv.html
C + + uses SQLite