How to compile sqlite-source-3_6_23_1 with vc6
I. Version:
2010-Mar-30 version3.6.23.1
II. Source code Obtain:
Download the following content on the official http://www.sqlite.org/download.html:
Sqlite-source-3_6_23_1.zip
3. Create a Win32 Dynamic Link Library Project
1. Open VC to create a "Win32 dynamic-Link Library" project named sqlite3;
2. In the following dialog box, select "an empty DLL project" and click Finish-> OK;
4. Add files to the Project
Add files in the sqlite-source-3_6_22 to the sqlite3 project:
1. Add all *. c files under the sqlite-source-3_6_22 to the source file of the project
2. Add all *. H files under the sqlite-source-3_6_22 to the header file of the project
Note: Do not add the tclsqlite. C source file to the project;
V. File description:
1. tclsqlite. C is used to generate TCL-based APIs. to compile, You need to download the TCL. h header file;
2. shell.c is used to generate sqlite.exe;
3. fts3 *. c is the full-text index module;
4. rtree. c is the module for establishing the r tree index of the database;
6. Compilation parameters:
Click "project"-"Settings…" in the vc6 menu ...] -[C/C ++] bookmarks -- [Preprocessor definitions :]
Add the following four compilation options. Each compilation option is separated by a comma.
1. sqlite_core
2. sqlite_enable_rtree
3. sqlite_enable_column_metadata
4. sqlite_enable_fts3
7.download sqlite-amalgamation-3_6_23_1.zip:
Download the package from http://www.sqlite.org/download.html.
Sqlite-amalgamation-3_6_23_1.zip
8. Add the sqlite3.def file to the header file directory of the project:
1.decompress sqlite-amalgamation-3_6_23_1.zip;
2. Copy the sqlite3.def file under the sqlite-amalgamation-3_6_23_1 directory to the sqlite3 project;
3. Add the sqlite3.def file to the header file directory of the project;
9. Compile by F7: Note: For more compilation information, refer to the following:
Official compilation information:
Http://www.sqlite.org/compile.html
How to compile in Visual Studio. NET development environment
Http://www.sqlite.org/cvstrac/wiki? P = howtocompilewithvsnet