Полезная информация

1.12. Building Libpq Programs

To build (i.e., compile and link) your libpq programs you need to do all of the following things:

If your codes references the header file libpq-int.h and you refuse to fix your code to not use it, starting in PostgreSQL 7.2, this file will be found in includedir/postgresql/internal/libpq-int.h, so you need to add the appropriate -I option to your compiler command line.