Install libpqxx-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libpqxx-dev
C++ library to connect to PostgreSQL (development files)
C++ library to enable user programs to communicate with the PostgreSQL database back-end. . This package contains header files for linking against libpqxx. Obsoletes the libpqpp-dev package.