PostgreSQL connection - Mailing list pgsql-novice

From Charles Voss
Subject PostgreSQL connection
Date
Msg-id 004201c12bf4$d2b6e260$0200000a@amd333
Whole thread Raw
List 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@iname.com
 

 

pgsql-novice by date:

Previous
From: Justin Clift
Date:
Subject: New FAQ : FAQ: Working with Dates and Times in PostgreSQL
Next
From: Albert Reiner
Date:
Subject: Re: protected ON DELETE CASCADE