VC using SQLite

Source: Internet
Author: User
Tags sqlite

SQLite can be downloaded to the official site (http://www.sqlite.org/download.html): Linux,mac OS X, compiled files under Windows, and source code, help documentation.

SQLite official download is only available to us a sqlite3.dll with a sqlite3.def file, and does not provide a Lib file for vc++6.0, you can use the Sqlite3.def file generation, the steps are as follows:
1. First extract the sqlite3.h from the source code package (such as Sqlite-amalgamation-3140200.zip) downloaded from the official website.
2. Enter the console and use the VC installation directory under the \bin\lib.exe file (D:\Program files (x86) \microsoft Visual Studio 10.0\vc\bin) to generate the. lib file
Enter the directory where the Def file is located and execute
"D:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\lib"/machine:ix86/def:sqlite3.def
The command generates two files: Sqlite3.lib sqlite3.exp
When you run the command, if you are prompted to find MSPDB60. DLL or MSPDB100.dll files, you can search for the file in the VC installation directory and copy it to the bin.
3. Put. H. lib. dll in the project, as you would with other dynamic libraries.

VC using 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.