fnc12 / sqlite_orm

❤️ SQLite ORM light header only library for modern C++
GNU Affero General Public License v3.0
2.19k stars 305 forks source link

SQLITE_VERSION_NUMBER used prior to include #1322

Closed trevornagy closed 1 week ago

trevornagy commented 1 week ago

Updated to the latest version of dev and it doesn't seem to build. The cause looks to be 75a33379723c955052bdeb1bb8d7274ec2061edb as it is referencing SQLITE_VERSION_NUMBER before #include <sqlite3.h>.

trueqbit commented 1 week ago

Hi @trevornagy,

Thank you for reporting this! We use precompiled headers that include sqlite3.h before sqlite_orm.h, so this went unnoticed in the unit test builds.

75a3337 is not the cause per se, but uncovered the issue that SQLITE_VERSION_NUMBER may be used before sqlite3.h is included.

A solution is being prepared...