Re: Please help with PostgreSQL

From: Richard Banks <rbanks(at)arel(dot)com(dot)au>
To: Cedar Cox <cedarc(at)visionforisrael(dot)com>, Javier Reniz <jreniz(at)usa(dot)net>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Please help with PostgreSQL
Date: 2001-01-10 21:28:22
Message-ID: 5.0.0.25.0.20010111081859.00a55d10@mail.arel.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


>
>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.

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message fud fudmore 2001-01-11 00:11:40 RE: Connection problems
Previous Message mall 2001-01-10 20:32:00 Connection problems