/usr/bin/ld: cannot find [...] when compiling

Поиск
Список
Период
Сортировка
От Janek Sendrowski
Тема /usr/bin/ld: cannot find [...] when compiling
Дата
Msg-id trinity-b1b29b5b-8e02-451d-aff1-95e2929d3e75-1385307093657@3capp-webde-bs45
обсуждение исходный текст
Ответы Re: /usr/bin/ld: cannot find [...] when compiling  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

 

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 (#include "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 Grittner
Дата:
Сообщение: Re: Query runs slow
Следующее
От: Tom Lane
Дата:
Сообщение: Re: /usr/bin/ld: cannot find [...] when compiling