libpq linker problems

Поиск
Список
Период
Сортировка
От Mike Mills
Тема libpq linker problems
Дата
Msg-id bdbdc3540503061253517178a6@mail.gmail.com
обсуждение исходный текст
Список pgsql-interfaces
I'm having a problem compiling my C program using libpq I have used
the proper linking directories as returned by pg_config both include
and library dirs. I have also used -lpq. Still I get errors

A3.o(.text+0x1e): In function `main':
: undefined reference to `PQconnectdb'
A3.o(.text+0x2c): In function `main':
: undefined reference to `PQstatus'
collect2: ld returned 1 exit status

I have the library installed from the debian package

ldconfig -v | grep pq  libpq.so.3 -> libpq.so.3.1

I'm using libpq-fe.h 

Thank you


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Wallick
Дата:
Сообщение: CORBA Server Requiring Connectivity and Activity with PostgreSQL 8.0 on RH Linux 9
Следующее
От: Moncef Mezghani
Дата:
Сообщение: undefined reference to `SSL_new' when linking with lib-pq.a version 7.4.7-2