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