C + + uses SQLite

Source: Internet
Author: User
Tags sqlite sqlite download

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

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.