隐式声明函数'sqlite3_key'? [英] Implicit declaration of function 'sqlite3_key'?

查看:696
本文介绍了隐式声明函数'sqlite3_key'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 SQLite文件加密工作。我添加了sqlCipher&加密框架在我的项目中成功。

I am working on SQLite File Encryption. I have added sqlCipher & crypto frameworks successfully in my project.

现在,当我尝试在这行上编译我的应用程序

Now when I try to compile my application on this line

int rc = sqlite3_key(database, [key UTF8String], strlen([key UTF8String]));

它表示隐式声明函数'sqlite3_key'

it says Implicit declaration of function 'sqlite3_key'

所以上面的行隐含声明对我来说就像函数被定义但没有声明。但是我必须宣布吗?

So above line "implicit declaration" sounds to me like function is defined but not declared. But where I have to declared ?

在互联网上搜索时,根据本文,它说像SQLite加密扩展(SEE)不是公开可用。我必须购买大约2000美元的费用。

While searching over Internet, under this article, it says like SQLite Encryption Extension(SEE) is not available publically. I have to purchase it of cost around $2000.

查看 - > http://www.hwaci.com/sw/sqlite/see.html

所以这是我唯一的原因我得到隐性申报sqlite加密过程中的错误响应?

So this is the only reason I am getting Implicit declaration & False response while sqlite encryption process ?

推荐答案

是的,这就是你得到编译器警告的原因。在iOS中包含的libsqlite3版本中没有定义函数sqlite3_key()。添加函数声明不会有帮助 - 它会修复编译器警告,但这只是意味着您会收到链接器错误,因为该函数未在任何位置定义。

Yes, that is the reason you are getting that compiler warning. The function sqlite3_key() is not defined in the version of libsqlite3 included with iOS. Adding in a function declaration isn't going to help-- it would fix that compiler warning, but it would just mean you'll get a linker error since the function isn't defined anywhere.

如果你购买了SEE,你可能会自己编写一个SQLite的副本,将其嵌入到你的应用程序中,而不是使用系统的libsqlite3。这意味着当应用程序商店提交过程询问您的应用程序是否包含加密,这意味着额外的文书工作和时间,您可以提交应用程序之前,您必须说是。我不确定是否有明确的迹象表明苹果是否会接受 - 即使是这样 - 可能他们会,但他们已经知道惊喜的人。

If you purchased SEE you could probably build your own copy of SQLite, embed it in your app, and just not use the system's libsqlite3. That this would mean you'd have to say "yes" when the app store submission process asks if your app includes encryption, meaning extra paperwork and time before you could submit the app. I'm not certain whether there's any clear indication of whether Apple would accept it even then-- probably they would, but they've been known to surprise people.

这篇关于隐式声明函数'sqlite3_key'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆