Discussion:
[BUGS] connect to C program
Hiep Pham
2015-11-09 15:56:36 UTC
Permalink
Dear sir.
I have some troubles with the connection between C and Postgresql. My
compile command reported that it can't find libqp-fe.h. i read your
document but i don't know hơ to compile this command line cc -c
-I/usr/local/pgsql/include testprog.c. Help me pls
Shulgin, Oleksandr
2015-11-09 17:31:13 UTC
Permalink
Post by Hiep Pham
Dear sir.
I have some troubles with the connection between C and Postgresql. My
compile command reported that it can't find libqp-fe.h. i read your
document but i don't know hơ to compile this command line cc -c
-I/usr/local/pgsql/include testprog.c. Help me pls

This is not really a bug report, but if you have installed development
files for libpq, postgres client library, and verified that libpq-fe.h
indeed can be found at /usr/local/pgsql/include then it should work.

On Debian or a derivative system you should install package libpq-dev:

sudo apt-get isnstall libpq-dev

This installs the header files in the following location:
/usr/include/postgresql

--
Alex

Loading...