当前位置:网站首页>SQLite compilation
SQLite compilation
2022-04-23 06:44:00 【The old man is outside the door】
1、 download sqlite3 Source code :http://www.sqlite.org/download.html
Mainly sqlite-amalgamation-XXXXXXX.zip、sqlite-dll-win32-x86-XXXXXXX.zip、sqlite-dll-win32-x64-XXXXXXX.zip
Dynamic library compilation :
ps: If there are no special requirements , You can directly use the downloaded sqlite-dll-*********.zip Internal dll, If you don't feel at ease, compile it yourself .
1、 Use vs2010 establish win32 engineering , And then choose DLL Hekong project , Under normal circumstances vc6-vs2015 All support
2、 hold sqlite3.c、sqlite3.h、sqlite3ext.h、sqlite3.def Copy to the project source file directory , front 3 The first file is located in the first zip, The latter file is in the back 2 individual zip, Which one to use depends on your target environment .
3、 Then use the resource manager of the project to 4 Add a file to the project
4、 Modify project configuration , In configuration properties –>c/c+±-> The preprocessor –> Preprocessor definition , Join in
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA
5、 Modify project configuration , In configuration properties –> The linker –> Input –> Module definition file Join in sqlite3.def, Then compile it .
Static library compilation :
1、 Use vs2010 establish win32 engineering , Then select the static library , Remove the precompiled header , Under normal circumstances vc6-vs2015 All support
2、 hold sqlite3.c、sqlite3.h、sqlite3ext.h、sqlite3.def Copy to the project source file directory , front 3 The first file is located in the first zip, The latter file is in the back 2 individual zip, Which one to use depends on your target environment .
3、 Then use the resource manager of the project to 4 Add a file to the project
4、 Modify project configuration , In configuration properties –>c/c+±-> The preprocessor –> Preprocessor definition , Join in
SQLITE_ENABLE_RTREE
SQLITE_ENABLE_COLUMN_METADATA
5、 Modify project configuration , In configuration properties –> The linker –> Input –> Module definition file Join in sqlite3.def, Then compile it .
Reference resources :
1.https://www.cnblogs.com/hushaojun/p/5257935.html
2.https://www.cnblogs.com/wzqstudy/p/12066491.html
3.https://www.sqlite.org/download.html
4.https://sqlitebrowser.org/dl/
版权声明
本文为[The old man is outside the door]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230548038820.html
边栏推荐
猜你喜欢
[UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)
进程管理命令
汇编 32位无符号加法计算器
Graduation project, curriculum link, student achievement evaluation system
QT icon application
Collection of practical tips for C language (continuously updated)
[UDS unified diagnosis service] IV. typical diagnosis service (1) - diagnosis and communication management function unit
C语言实用小技巧合集(持续更新)
【UDS统一诊断服务】四、诊断典型服务(1)— 诊断和通信管理功能单元
非参数化相机畸变模型简介
随机推荐
Programmers can also write novels
[stepping on the pit] MELD in win11 wsl2 cannot be used normally. Problem repair
Matlab calibration board corner detection principle
POJ-The Unique MST
ARM常用汇编指令
猜數字遊戲
浮点数双精度,单精度以及半精度知识总结
SSH 公钥 私钥的理解
汇编基础代码示例
Matching between class template with default template argument and template parameter
vs中能编译通过,但是会有红色下划线提示未定义标示符问题
sqlite3加密版
[UDS unified diagnostic service] i. overview of diagnosis (4) - basic concepts and terms
Shell脚本 &&和||的使用
Shell脚本的通配符和特殊符号
Running QT program in visual Stdio
Object array and object pointer
深蓝学院激光slam理论与实践 -第二章(里程计标定)作业
类和对象
WMI技术介绍和应用