SRombauts / SQLiteCpp

SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper.
http://srombauts.github.io/SQLiteCpp
MIT License
2.22k stars 510 forks source link

macOS builtin: Undefined symbols for architecture arm64: _sqlite3_load_extension #486

Closed SRombauts closed 2 months ago

SRombauts commented 2 months ago

Found through https://github.com/SRombauts/SQLiteCpp/pull/485 Test linking with builtin libsqlite3-dev package on Ubuntu

Undefined symbols for architecture arm64:
  "_sqlite3_load_extension", referenced from:
      SQLite::Database::loadExtension(char const*, char const*) in libSQLiteCpp.a[4](Database.cpp.o)
ld: symbol(s) not found for architecture arm64
SRombauts commented 2 months ago

We have to use -DSQLITE_OMIT_LOAD_EXTENSION=ON when we use -DSQLITECPP_INTERNAL_SQLITE=OFF on macOS