# Sqlite3\_key "identifier not found" error

**URL:** <https://discuss.zetetic.net/t/sqlite3-key-identifier-not-found-error/6872>\
**Category:** SQLCipher\
**Created:** [March 21, 2025, 9:17am UTC](https://discuss.zetetic.net/t/sqlite3-key-identifier-not-found-error/6872 "2025-03-21T09:17:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atul](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Atul](https://discuss.zetetic.net/u/Atul)\
**Post date:** [March 21, 2025, 9:17am UTC](https://discuss.zetetic.net/t/sqlite3-key-identifier-not-found-error/6872/1 "2025-03-21T09:17:48Z")

</div>

Hi All ,

I am trying to access encrypted db via c++ program .

I replaced my SQLite folder with examples binaries folder . Also modified paths in linker and additional directories to make it as similar to Native Static example .

I am facing sqlite3\_key “identifier not found” error . Examples folder example works very well with my Encrypted DB .

Please advice !

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [March 21, 2025, 4:39pm UTC](https://discuss.zetetic.net/t/sqlite3-key-identifier-not-found-error/6872/2 "2025-03-21T16:39:32Z")

</div>

Hello @Atul - there are two potential issues:

1. Your build is not defining the macro `SQLITE_HAS_CODEC` at compile time, so `sqlite3_key()` is not being exposed.
2. SQLCipher’s special `sqlite3.h` file is not in the `INCLUDE` path, so you are use a version of the header that doesn’t include the definition for `sqlite3_key()`

Please check those two potential issues.

---

<div class="post-metadata">

**Author:** ![Atul](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Atul](https://discuss.zetetic.net/u/Atul)\
**Post date:** [April 28, 2025, 8:55am UTC](https://discuss.zetetic.net/t/sqlite3-key-identifier-not-found-error/6872/3 "2025-04-28T08:55:36Z")

</div>

Thanks For the resolution. Its Working!

---

<div class="post-metadata">

**Author:** ![sjlombardo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/sjlombardo/32/3_2.png) [@sjlombardo](https://discuss.zetetic.net/u/sjlombardo)\
**Post date:** [April 28, 2025, 4:50pm UTC](https://discuss.zetetic.net/t/sqlite3-key-identifier-not-found-error/6872/4 "2025-04-28T16:50:09Z")

</div>

Closed on April 28, 2025, 4:50pm UTC


