Re: using palloc in extension functions in c

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Kjetil Haaland <kjetil(dot)haaland(at)student(dot)uib(dot)no>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: using palloc in extension functions in c
Date: 2004-10-31 14:04:47
Message-ID: 20041031140447.GA81568@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, Oct 27, 2004 at 01:59:56PM +0200, Kjetil Haaland wrote:
>
> bash-2.05b$ gcc smith-waterman.c
> /tmp/cc0X3Urq.o(.text+0x4dd): In function `readScoreMatrix':
> : undefined reference to `CurrentMemoryContext'
> /tmp/cc0X3Urq.o(.text+0x4e5): In function `readScoreMatrix':
> : undefined reference to `MemoryContextAlloc'
> collect2: ld returned 1 exit status

See the "Compiling and Linking Dynamically-Loaded Functions"
documentation:

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

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message John Fabiani 2004-10-31 16:26:51 moving from MySQL to Postgres
Previous Message Michael Fuhr 2004-10-31 06:54:34 Re: help using count in function