Re: connect to C program

From: "Shulgin, Oleksandr" <oleksandr(dot)shulgin(at)zalando(dot)de>
To: Hiep Pham <hieppso194(at)gmail(dot)com>
Cc: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: connect to C program
Date: 2015-11-09 17:31:13
Message-ID: CACACo5SFN3OBZ4nYo--ogsodubBSWyRA3OQYXB8P=-ebif7+Nw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Nov 9, 2015 at 4:56 PM, Hiep Pham <hieppso194(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message thanh.nguyen 2015-11-09 22:25:03 BUG #13763: Failed to re-install Posgresql 9.1
Previous Message Tom Lane 2015-11-09 16:49:28 Re: BUG #13760: order by . offset .. limit bug? when order by column has same value