pg_begintypend

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_begintypend
Date: 2004-05-13 19:21:30
Message-ID: c80hs2$ote$1@floppy.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,
loading a function written in C I get this error:

#create function email_in( cstring ) returns email AS 'emaildt.so', 'email_in' LANGUAGE C STRICT;
NOTICE: type "email" is not yet defined
DETAIL: Creating a shell type definition.
ERROR: could not load library "emaildt.so": emaildt.so: undefined symbol: pg_begintypsend

I'm compiling my files in this way:

gcc -c -g -fPIC -o "email.o" -I /usr/include/pgsql/server "email.c"
gcc -g -shared -fPIC -o "emaildt.so" email.o

which library I have to link in order to have the symbol pg_begintypsend ?

Regards
Gaetano Mendola

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Brusser 2004-05-13 20:26:32 negative pid?
Previous Message Peter Eisentraut 2004-05-13 18:35:04 Re: mingw configure failure detection