2015-04-22 57 views
0

使用:SQLCipher錯誤:sqlite3_key未定義

sqlite3_key(db, "test123", 7); 

拋出|| sqlite3_key未定義||錯誤,但我已經添加了sqlite3.h文件,它具有該方法。
我意識到這個提示上面有一條評論。

** Specify the key for an encrypted database. This routine should be 
** called right after sqlite3_open(). 
** 
** The code to implement this API is not available in the public release 
** of SQLite. 


出了什麼問題?

回答

0

您的應用程序可能不包括CFLAG -DSQLITE_HAS_CODEC在編譯時使sqlite3_key可用,請檢查。有關SQLCipher構建過程的更多信息,請參閱this頁面。

+0

非常感謝Nick Parker,但是在這個cmd裏有.configure代碼嗎? VisualStudioCommandPromp,cmd或msys.bat? – Diego

+0

這些說明特定於從Linux或OS X構建SQLCipher,而不是Windows。 –

+0

那麼Windows呢? – Diego