SQLite Forum

sqlite header and source version mismatch
2018-12-01 corresponds to the SQLite 3.26 included with CentOS 8. This means you're picking up the system version of `sqlite3.h` and linking it to [SQLite 3.8.1](https://sqlite.org/changes.html#version_3_8_1) from 2013-10-17.

Is there a good reason why you're not building entirely against either the system version or something newer?

Regardless, it's unsafe to mix versions of the header and library. Thus the error. It's trying to save you from doing something likely to lead to unhappy outcomes.