As mentioned previously, libpgeasy is a wrapper around libpq. The basic requirements for building a libpq client were described in Chapter 8, "The PostgreSQL C API?libpq (Client Applications)," and so I won't repeat them here.

Besides the libpq header files and object libraries, you will need to #include the libpgeasy.h file and link to the libpgeasy object library (-lpgeasy).

    Part II: Programming with PostgreSQL