connect to C program

Started by Hiep Phamover 10 years ago2 messagesbugs
Jump to latest
#1Hiep Pham
hieppso194@gmail.com

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

#2Shulgin, Oleksandr
oleksandr.shulgin@zalando.de
In reply to: Hiep Pham (#1)
Re: connect to C program

On Mon, Nov 9, 2015 at 4:56 PM, Hiep Pham <hieppso194@gmail.com> wrote:

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