libpqxx is the C++ API for PostgreSQL.
Since libpqxx builds on top of the C frontend libpq, you will need a working libpq library on your system prior to getting started with libpqxx.
See the Github page for more information.