PostgreSQL connection

Поиск
Список
Период
Сортировка
От Charles Voss
Тема PostgreSQL connection
Дата
Msg-id 004201c12bf4$d2b6e260$0200000a@amd333
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: New FAQ : FAQ: Working with Dates and Times in PostgreSQL
Следующее
От: Albert Reiner
Дата:
Сообщение: Re: protected ON DELETE CASCADE