SQLite 3.7.13的加密解密(二)—— 开放宏定义

SQLite 3.7.13的加密解密(二)—— 开放宏定义,第1张

概述SQLite 3.7.13的加密解密(二)—— 开放定义 原创作品,允许转载,转载时请务必以超链接形式标明文章  原始出处 、作者信息和本声明。否则将追究法律责任。 http://www.voidcn.com/article/p-aweplvzv-bhx.html 首先要在sqlite3.c中最前面,添加代码(网上有说在sqlite3.h中添加也可,实际测试在sqlite3.h中打开该宏是无效的 sqlite 3.7.13的加密解密(二)—— 开放宏定义 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处、作者信息和本声明。否则将追究法律责任。 http://www.jb51.cc/article/p-aweplvzv-bhx.html

首先要在sqlite3.c中最前面,添加代码(网上有说在sqlite3.h中添加也可,实际测试在sqlite3.h中打开该宏是无效的):

#ifndefsqlITE_HAS_CODEC

#definesqlITE_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://www.jb51.cc/article/p-aweplvzv-bhx.html

总结

以上是内存溢出为你收集整理的SQLite 3.7.13的加密解密(二)—— 开放宏定义全部内容,希望文章能够帮你解决SQLite 3.7.13的加密解密(二)—— 开放宏定义所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1181960.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存