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.