PostgreSQL connection

From: Charles Voss <crvoss(at)iname(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: PostgreSQL connection
Date: 2001-08-23 16:58:24
Message-ID: 004201c12bf4$d2b6e260$0200000a@amd333
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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?

_____________________________
Charles R. Voss
crvoss(at)iname(dot)com

Browse pgsql-novice by date

  From Date Subject
Next Message Murray Hobbs 2001-08-23 19:06:42 Re: protected ON DELETE CASCADE
Previous Message Francois Thomas 2001-08-23 16:24:01 RE: Bad timestamp external representation