Re: include all the postgres libraries (C)

Поиск
Список
Период
Сортировка
От Janek Sendrowski
Тема Re: include all the postgres libraries (C)
Дата
Msg-id trinity-c48282cf-7eff-4d99-a65d-7ed41dea3e18-1385162483504@3capp-webde-bs06
обсуждение исходный текст
Ответ на Re: include all the postgres libraries (C)  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-general
I think PGXS is, what I've been looking for.

 

My Makefile looks like this:


 PROGRAM = test
DATA = test.c
 PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

 


The file test.c only includes the postgres.h, but I get this error, when compiling:

/usr/bin/ld: cannot find -lxslt
/usr/bin/ld: cannot find -lxml2
/usr/bin/ld: cannot find -lpam
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
make: *** [test] Error 1

 

Does anyone have an idea?

 

Janek Sendrowski

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

Предыдущее
От: Kevin Wooten
Дата:
Сообщение: Re: Scrolling/Updating Cursors
Следующее
От: Ken Tanzer
Дата:
Сообщение: Re: Getting non_NULL right-side values on a non-matching join?