Re: Include directory

From: Doug McNaught <doug(at)wireboard(dot)com>
To: pocm(at)rnl(dot)ist(dot)utl(dot)pt (Paulo J(dot) Matos)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Include directory
Date: 2002-01-22 01:47:06
Message-ID: m3zo37b1id.fsf@varsoon.denali.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

pocm(at)rnl(dot)ist(dot)utl(dot)pt (Paulo J. Matos) writes:

> Hi all,
>
> After installing I wish to use the library libpq that comes with
> postgresql, I added /usr/local/pgsql/lib to my LD_LIBRARY_PATH
> environment variable. But what should I do so that in my C
> program I can do #include <libpq-fe.h> ? I need to make
> /usr/local/pgsql/include a include system directory. How can I do
> that? Oh, I'm running slackware linux 8.0, bash shell.

Add:

-I/usr/local/pgsql/include

to your compiler command line in the Makefile (usually just adding it
to CFLAGS is enough).

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2002-01-22 01:47:30 Re: PostgreSQL Licence: GNU/GPL
Previous Message Paulo J. Matos 2002-01-22 01:44:40 Include directory