Microsoft Visual Studio 2010 Chinese version compiled SQLlite3.7.0 version

Source: Internet
Author: User
Tags sqlite visual studio 2010

As a teacher, no specific project development, but like early adopters, inadvertently began chasing stars.

Changed Win7, installed the Chinese version of Microsoft Visual Studio 2010, July 22 SQLite released version 3.7.0. Of course I want to try it.

First, get the source code
Download: Http://www.sqlite.org/sqlite-amalgamation-3_7_0.zip

Unzip (whatever you specify) into the directory where you want to place it (I put it in the D:\SourceCode\sqlite_source\amalgamation)


Ii. Establishment of the project
New project in VS2010 VC + + Win32 project: Named SQLite370



In the second step of the wizard, "Application Type" Select DLL, "Additional Options" select "Empty Project"



In the solution Support Manager, right-click on "header File", select "Add" and then "existing" to add the two. h files under the extracted directory to the project.

Open the Project Properties page and set the target file name in general, which is to compile the SQLite3.dll


Set the preprocessor definition for the "C + +" preprocessor, click the small arrow on the right, open the drop-down list, point < Edit > Open the Settings dialog box


Add "Sqlite_enable_column_metadata"


Set the "module definition file" in "Input" under "linker", that is, the path of sqlite3.def in the extracted directory, and output the sqlite3.lib after compiling. Ditto, point to the right of the small arrow, open the drop-down list, point < Edit > Open the Settings dialog box, the directory path can contain spaces, Chinese.


Iv. completion of
Build on the line. I will get the SQLite3.dll replaced by the Sqlitemaestro installation directory under the SQLite3.dll to test, through.

Third, set the project properties are also added sqlite3.c to the project under "Source Files", as a result.

Microsoft Visual Studio 2010 Chinese version compiled SQLlite3.7.0 version

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.