SQLite 3.7.13的加密解密(二)—— 开放宏定义
来源:互联网 发布:比特币 淘宝 编辑:程序博客网 时间:2024/05/16 01:34
首先要在sqlite3.c中最前面,添加代码(网上有说在sqlite3.h中添加也可,实际测试在sqlite3.h中打开该宏是无效的):
#ifndef SQLITE_HAS_CODEC
#define SQLITE_HAS_CODEC
#endif
这个宏是用来确定是否支持加密的。添加上述代码后编译,会出现如下错误:
D:\Research\MySQLite\Debug/../src/sqlite3.c:80963: undefined reference to `sqlite3CodecAttach'
D:\Research\MySQLite\Debug/../src/sqlite3.c:80968: undefined reference to `sqlite3CodecGetKey'
D:\Research\MySQLite\Debug/../src/sqlite3.c:80970: undefined reference to `sqlite3CodecAttach'
src\sqlite3.o: In function `sqlite3Pragma':
D:\Research\MySQLite\Debug/../src/sqlite3.c:94023: undefined reference to `sqlite3_key'
D:\Research\MySQLite\Debug/../src/sqlite3.c:94026: undefined reference to `sqlite3_rekey'
D:\Research\MySQLite\Debug/../src/sqlite3.c:94038: undefined reference to `sqlite3_key'
D:\Research\MySQLite\Debug/../src/sqlite3.c:94040: undefined reference to `sqlite3_rekey'
D:\Research\MySQLite\Debug/../src/sqlite3.c:94048: undefined reference to `sqlite3_activate_see'
src\sqlite3.o: In function `sqlite3RunVacuum':
D:\Research\MySQLite\Debug/../src/sqlite3.c:101744: undefined reference to `sqlite3CodecGetKey'
本文出自 “rainman” 博客,请务必保留此出处http://lancelot.blog.51cto.com/393579/940808
- SQLite 3.7.13的加密解密(二)—— 开放宏定义
- SQLite 3.7.13的加密解密(二)—— 开放宏定义
- SQLite 的加密解密(开放宏定义)
- SQLite 3.7.13的加密解密(三)—— 创建加密解密函数
- SQLite 3.7.13的加密解密(四)—— 挂接加密解密函数
- SQLite 3.7.13的加密解密(三)—— 创建加密解密函数
- SQLite 3.7.13的加密解密(四)—— 挂接加密解密函数
- SQLite 3.7.13的加密解密(一)—— 前言
- SQLite 3.7.13的加密解密(五)—— 修正编译错误和警告
- SQLite 3.7.13的加密解密(六)—— 使用方法
- SQLite 3.7.13的加密解密(七)—— 遗留问题
- SQLite 3.7.13的加密解密(一)—— 前言
- SQLite 3.7.13的加密解密(五)—— 修正编译错误和警告
- SQLite 3.7.13的加密解密(六)—— 使用方法
- SQLite 3.7.13的加密解密(七)—— 遗留问题
- SQLite 3.7.13的加密解密
- 加密解密(二)——Base64算法
- java加密与解密的艺术(二)——对称密码体制
- SQLite 3.7.13的加密解密(一)—— 前言
- js表格求和的方法
- 她的爱情故事,你看了会哭嚒
- linux上wget命令出现HTTP request sent, awaiting response... 400 Bad Request问题
- EL表达式语言学习应用
- SQLite 3.7.13的加密解密(二)—— 开放宏定义
- 快速会用c++异常捕获机制(一个程序几行代码)
- 在 ASP.NET MVC 中使用异步控制器
- 如何优化MySQL insert性能
- HttpServletResponse进一步学习
- Ubuntu中SSH命令详解
- SQLite 3.7.13的加密解密(三)—— 创建加密解密函数
- T4MVC的其中解决bug的方法
- 二.Sql server 选择语句