Re: Problems compiling a trigger

From: Neil Conway <neilc(at)samurai(dot)com>
To: Rodolfo Campos <camposer(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problems compiling a trigger
Date: 2006-02-08 01:39:32
Message-ID: 1139362772.21273.49.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2006-02-08 01:44:24 Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and
Previous Message Simon Riggs 2006-02-08 00:49:02 Re: streamlined standby procedure