To build (i.e., compile and link) your libpq programs you need to
- do the following things:
+ do all of the following things:
Include the libpq-fe.h header file:
-#include <libpq-fe>
+#include <libpq-fe.h>
If you failed to do that then you will normally get error
- messages from your compiler, such as
+ messages from your compiler similar to
foo.c: In function `main':
foo.c:34: `PGconn' undeclared (first use in this function)