多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ### 调用sqlite的代码如下: ***** ``` #include <iostream> using namespace std; #include "./sql_src/sqlite3.h" int main() { cout << "sqlite libversion : " << sqlite3_libversion() << endl; return 0; } ``` ### 配置CMakeList.txt ``` cmake_minimum_required(VERSION 3.3) project(sql_tutorial1) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(SOURCE_FILES main.cpp sql_src/sqlite3.c) add_executable(sql_tutorial1 ${SOURCE_FILES}) ```