Re: Please help with PostgreSQL - Mailing list pgsql-interfaces

From Richard Banks
Subject Re: Please help with PostgreSQL
Date
Msg-id 5.0.0.25.0.20010111081859.00a55d10@mail.arel.com.au
Whole thread Raw
In response to Please help with PostgreSQL  (Javier Reniz <jreniz@usa.net>)
List pgsql-interfaces
<blockquote cite="cite" class="cite" type="cite"><br /> On 9 Jan 2001, Javier Reniz wrote:<br /><br /> I don´t know if
theproblem is about enviroment variables (I programming as<br /> root and/or Postgres user) or is the compilation
instruction(gcc -o program.c<br /> program.o)<br /></blockquote><br /><font face="Times New Roman, Times">try gcc -o
programprogram.c -I/usr/include/pgsql -lpq<br /><br /> You need the <i>-lpq</i> to tell the linker to reference
libpq.sofor the postgresql calls.<br /> (and get rid of the .c in your output target unless you want to overwrite your
sourcecode)<br /><br /> Richard.</font> 

pgsql-interfaces by date:

Previous
From: mall
Date:
Subject: Connection problems
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: ReadOnly