【SQLite 官方網站】
SQLite 下載
SQLite 說明文件
【SQLite C/C++使用範例】
Tutorialspoint - SQLite C/C++
【Windows SQLite 64位元LIB檔建立方式】
SQLite官方下載網站
先下載 "Precompiled Binaries for Windows" "64-bit DLL (x64) for SQLite"
解壓縮後,使用CMD切換至解壓縮後的資料夾下輸入指令
lib /def:sqlite3.def /machine:X64 /out:sqlite3.lib
執行後將於該資料夾輸出 SQLite 64位元LIB檔
【Windows Visual C++ 使用SQLite】
■主要cpp檔輸入: #include "SQLite路徑\sqlite3.h"
到官方網站下載: "Precompiled Binaries for Windows" "sqlite-amalgamation-xxxxxxx"
■主要cpp檔輸入: #pragma comment(lib, "sqlite3.lib")
若沒有輸入,則編譯時會出現 "無法解析的外部命令"
■需複製sqlite3.dll到執行程式資料夾下(DEBUG、RELEASE),或複製到System32下
■要注意LIB檔與DLL檔的版本,x86與x64不能混用