vault backup: 2022-09-26 18:29:43
Affected files: .obsidian/workspace 01. 個人/02. 專注Study/20150803 - Android/Android programming.md 01. 個人/02. 專注Study/20220601 - C++/C++17 1.md 03. 資料收集/01. 架站/01. Nginx Layer4 Reverse Proxy.md 03. 資料收集/Android operating.md 03. 資料收集/DB/MySQL.md 03. 資料收集/DB/sqlite.md 03. 資料收集/NextDNS.md 03. 資料收集/SLAM.md 03. 資料收集/V2Ray.md 03. 資料收集/__templates/blogHeader.md 03. 資料收集/__templates/date.md 03. 資料收集/__templates/front matter.md 03. 資料收集/__templates/note.md 03. 資料收集/__templates/table.md 03. 資料收集/__templates/thisWeek.md 03. 資料收集/__templates/日記.md 03. 資料收集/__templates/讀書筆記.md 03. 資料收集/frp.md 03. 資料收集/youtube-dl.md 03. 資料收集/架站/02. SWAG Reverse proxy.md 03. 資料收集/架站/03. Trojan.md 03. 資料收集/架站/04. Gitea.md 03. 資料收集/架站/Nginx/Reverse Proxy(Layer4).md 03. 資料收集/模型/Traxxas Sledge.md 03. 資料收集/模型/舊化作例.md 03. 資料收集/財經.md 03. 資料收集/軍武/虎式.md 03. 資料收集/面試準備/技术面试最后反问面试官的话.md
This commit is contained in:
13
03. 資料收集/DB/sqlite.md
Normal file
13
03. 資料收集/DB/sqlite.md
Normal file
@@ -0,0 +1,13 @@
|
||||
## Build static library
|
||||
1. Navigate to [https://www.sqlite.org/download.html](https://www.sqlite.org/download.html) and download latest `amalgamation` source version of SQLite.
|
||||
2. Extract all the files into your project directory, or your include path, or separate path that you will add/added as include path in your project properties.
|
||||
3. Run `Developer Command Prompt for VS ****` which is usually available at `Start -> Programs -> Visual Studio **** -> Visual Studio Tools`.
|
||||
4. Navigate with command prompt to that directory where we extracted our SQLite.
|
||||
5. Run next command to compile: `cl /c /EHsc sqlite3.c`
|
||||
6. Run next command to create static library: `lib sqlite3.obj`
|
||||
7. Open properties of your project and add `sqlite3.lib` to `Linker -> Input -> Additional Dependencies`.
|
||||
|
||||
Now you ready to include and use `sqlite3.h` in your project.
|
||||
|
||||
### 參考
|
||||
- [How to add SQLite into your VS project as Static Library](https://gist.github.com/payalord/c87cbd1d12ea7712449657d1c6583e12)
|
||||
Reference in New Issue
Block a user