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