SQLite3.8.4.2在Windows平台下的编译和使用
SQLite is a software library that implements a self-contained , serverless , zero-configuration , transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. The source code for SQLite is in the public domain . 下载源代码 可以在下面的链接中找到“Source Code”一栏: http://www.sqlite.org/download.html 当前提供了两个下载源,我们选择第一个 sqlite-amalgamation-3080402.zip 这个是将代码整合过的,解压后应该有下面几个文件: shell.c sqlite3.c sqlite3ext.h sqlite3.h 其中sqlite3.c源文件很大。可以看得出确实是整合在一起的,不过不影响我们编译。 2. 编译源代码 这里使用Visual Studio 2013进行编译,启动VS2013,选择从现有代码创建项目,如图: 项目类型为Visual C++,项目文件位置选择解压的源代码目录,项目名称随便打一个,其他选项默认,下一步。