SQLite Forum

Unable to compile spellfix extension of latest tarball that uses "SQLITE_VTAB_INNOCUOUS"
Login
> I'm not terribly familiar with C/C++ and compiling my own code, which is likely why I ran into this issue.

Perusing [Compiling A Loadable Extension](https://sqlite.org/loadext.html#build) should help with that.

> \[Saw error\] sqlite/ext/misc/spellfix.c:2072:31: error: ‘SQLITE_VTAB_INNOCUOUS’ undeclared (first use in this function); did you mean ‘SQLITE_STATIC’?

> ... This one did compile.

Your are encountering a problem with extension code and SQLite library code which are at different points along the project's evolution. If you just use spellfix.c and sqlite3.h from the same (or sufficiently similar) source snapshots, the "undeclared" complaints should vanish.