Hi everybody,
I'm a newbie to Linux so need a lot of help. I have a project to complete that requires connecting to a Postgres db. I have written a C program from examples in books, etc. The following is my compile command and result.
$ gcc -o test main.c -I/home/crvoss/tmp/ -L/usr/lib/ -lpq
/usr/bin/ld: connot find -lpq
collect2: ld returned 1 exit status
My includes (libpq-fe.h and postgres_ext.h) are in /home/crvoss/tmp. The .so libraries are as follows:
/usr/lib/libpq.so.2.0
/usr/lib/libpq.so.2.1
/usr/lib/libpq++.so.3.1
/usr/lib/libpq.so.2
/usr/lib/libpq++.so.3
What am I missing?