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

Installation from repository #490

Open d47081 opened 1 month ago

d47081 commented 1 month ago

I have just found and installed libsqlitecpp-dev from Debian 12 repository, suppose it's official even not latest version.

So it's compiling well in VSCode, without errors, by using this header:

#include <SQLiteCpp/SQLiteCpp.h>

But, when trying to finally build entire the app with make get an error like:

undefined reference to `SQLite::OPEN_READWRITE`
...

Seems following configuration not enough in Makefile?

pkg-config --libs --cflags sqlite3
UnixY2K commented 1 month ago

I think the package no longer has a maintainer in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051207 you can check if it works using the latest version here (3.3.2), both cmake or meson can create the required pkgconf so you can test it