Re: Problems compiling a trigger - Mailing list pgsql-hackers

From Neil Conway
Subject Re: Problems compiling a trigger
Date
Msg-id 1139362772.21273.49.camel@localhost.localdomain
Whole thread Raw
In response to Problems compiling a trigger  (Rodolfo Campos <camposer@gmail.com>)
List pgsql-hackers
On Tue, 2006-02-07 at 19:45 -0400, Rodolfo Campos wrote:
> I'm getting problems compiling a trigger written in C (exactly the one
> from the documentation), when compiling it I get the errore shwoned
> here.

This question belongs elsewhere (e.g. pgsql-general) -- -hackers is for
development-related discussion.

> gcc -I /usr/include/postgresql/server prueba1.c

Read:
   http://www.postgresql.org/docs/8.1/static/xfunc-c.html#DFUNC

which tells you to do:

cc -fpic -c foo.c
cc -shared -o foo.so foo.o

-Neil




pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and
Next
From: "Jim C. Nasby"
Date:
Subject: Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and