Compiling C Trigger function - Mailing list pgsql-general

From pw
Subject Compiling C Trigger function
Date
Msg-id 48BF1779.8020104@telus.net
Whole thread Raw
List pgsql-general
Hello,

I am attempting to compile a C trigger function for
use with Postgresql.

The function uses SPI and I am comiling in linux
using gcc.

The compiler is finding all the correct headers
but complains that it can't find the SPI functions.

I am compiling with -lpq .

Do I need to compile with additional library flags?
If so, what libraries do I need to link with?

Thanks

Peter

pgsql-general by date:

Previous
From: "Akhtar Yasmin-B05532"
Date:
Subject: Re: Postgres does not start, gives no error
Next
From: Tom Lane
Date:
Subject: Re: Postgres does not start, gives no error