Re: include all the postgres libraries (C) - Mailing list pgsql-general

From Janek Sendrowski
Subject Re: include all the postgres libraries (C)
Date
Msg-id trinity-c48282cf-7eff-4d99-a65d-7ed41dea3e18-1385162483504@3capp-webde-bs06
Whole thread Raw
In response to Re: include all the postgres libraries (C)  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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 by date:

Previous
From: Kevin Wooten
Date:
Subject: Re: Scrolling/Updating Cursors
Next
From: Ken Tanzer
Date:
Subject: Re: Getting non_NULL right-side values on a non-matching join?