From: Richard Banks <rbanks@arel.com.au>
To: Cedar Cox <cedarc@visionforisrael.com>
To: Javier Reniz <jreniz@usa.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Please help with PostgreSQL
Date: Thu, 11 Jan 2001 08:28:22 +1100
Message-ID: <5.0.0.25.0.20010111081859.00a55d10@mail.arel.com.au> (raw)
In-Reply-To: <Pine.LNX.4.21.0101101133490.22479-100000@nanu.visionforisr ael.com>
References: <20010109190312.23078.qmail@nwcst293>
>
>On 9 Jan 2001, Javier Reniz wrote:
>
>I don“t know if the problem is about enviroment variables (I programming as
>root and/or Postgres user) or is the compilation instruction (gcc -o program.c
>program.o)
try gcc -o program program.c -I/usr/include/pgsql -lpq
You need the -lpq to tell the linker to reference libpq.so for the
postgresql calls.
(and get rid of the .c in your output target unless you want to overwrite
your source code)
Richard.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: rbanks@arel.com.au, cedarc@visionforisrael.com, jreniz@usa.net
Subject: Re: Please help with PostgreSQL
In-Reply-To: <5.0.0.25.0.20010111081859.00a55d10@mail.arel.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox