Not sure if I can help, but what compiler + version? (what does g++ -v print?)
And what steps did you follow to build the libraries?
This is a complete guess, but if the library was built with C++11, but you're not compiling in C++11 (or vice-versa), there could be some linker errors there.
I installed the development package for cppdb from my distro's package manager (xbps)
I actually tried using different standards of C++ (C++0x, C++11, C++14, and C++17) using the -std= argument to g++ to no avail.
Glad you got it working. In general, there's really no guarantee that a library made with someone else's compiler will be link successfully with your compiler. There's too many variables at play. I always compile it from source myself when in doubt.