Re: connect to C program - Mailing list pgsql-bugs

From Shulgin, Oleksandr
Subject Re: connect to C program
Date
Msg-id CACACo5SFN3OBZ4nYo--ogsodubBSWyRA3OQYXB8P=-ebif7+Nw@mail.gmail.com
Whole thread Raw
In response to connect to C program  (Hiep Pham <hieppso194@gmail.com>)
List pgsql-bugs
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=C6=A1 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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #13760: order by . offset .. limit bug? when order by column has same value
Next
From: "笑见江湖"
Date:
Subject: =?gb18030?B?u9i4tKO6IFtCVUdTXSBCVUcgIzEzNzYyOiBzZXJ2?= =?gb18030?B?ZXIgd2lsbCBjcmFzaCBhZnRlciBzdXBlcnVzZXIg?= =?gb18030?B?YWx0ZXJmdW5jdGlvbiBhbmQgc2V0IGNsaWVudF9l?= =?gb18030?B?bmNvZGluZw==?=