> bash-2.04$ gcc -v -I/usr/local/include/postgresql/ -o testlibpq testlibpq.c
Now tell yourself where do you tell the compiler where all the postgresql
code is! The compiler itself wont give you the code for all your postgresql
specific function calls.
try add "-lpq" to the end of the line.
gcc -o testlibpq testlibpq.c -lpq
Daniel Akerud