SQLite compilation issues

Source: Internet
Author: User
Tags sqlite

The source files of SQLite have been obtained from the http://www.sqlite.org/homepage, and there is no time to study the problem of compiling.

The first is to encounter is, after compiling, only produces the Sqlite3.dll file, does not produce the corresponding Lib library file.

Look at the next sqlite3.h code, found that the SQLITE_API macro does not define the export __declspec (dllexport), just made an empty definition, it is natural to add in the back. After recompiling the discovery, there is no export function, nor generated any Lib library files, which let me at a time do not know how to be good.

In the online search, the original also to download a sqlite3.def module definition file, and included in the corresponding project to go.

Discovery can be exported, but encountered a second problem, Sqlite3.def unexpectedly found some unrecognized symbols, is called the Link2001 error.

It really gave me a headache for a long time. After all, I can't think of the source code to write a problem.

After checking a lot of documents and data, we need to define three macros in the preprocessor:

Sqlite_enable_column_metadata

Sqlite_enable_rtree

THREADSAFE

> We haven't found out what these three functions are for definition, However, it is clearly a function-compiled switch that may also be related to sqlite3 versioning. These complex problems can only be shelved for the moment.

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.