How to Use vc6 to compile sqlite3 source code to generate a dynamic link library (Version: sqlite-source-3_6_23_1)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.