Re: c function - undefined symbols - Mailing list pgsql-general

From Tom Lane
Subject Re: c function - undefined symbols
Date
Msg-id 3767.1228930456@sss.pgh.pa.us
Whole thread Raw
In response to Re: c function - undefined symbols  (Steffn <steffn@gmx.at>)
List pgsql-general
Steffn <steffn@gmx.at> writes:
> Thanks for your reply. Yes, thats also my suspicion. But what library to
> include?

There is no library to include --- you need to be building *your* code
as a library that can be loaded into the Postgres backend, which will
supply the missing function.  This is somewhat platform-specific and
frankly I'd suggest using pgxs rather than puzzling it out for yourself.
See
http://www.postgresql.org/docs/8.3/static/xfunc-c.html#XFUNC-C-PGXS

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.2.6 -> 8.1.11: syntax error at or near "OWNED BY"
Next
From: Said Ramirez
Date:
Subject: IN limit