Re: Help with adding C-Language Functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Seamus Thomas Carroll <carrolls(at)cpsc(dot)ucalgary(dot)ca>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Help with adding C-Language Functions
Date: 2005-02-11 00:35:32
Message-ID: 4724.1108082132@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Seamus Thomas Carroll <carrolls(at)cpsc(dot)ucalgary(dot)ca> writes:
> It compiles but when i try the LOAD command i get the following error:
> ERROR: could not load library "/home/grads/.../BlackboardFunctions.so":
> /home/grads/.../BlackboardFunctions.so: undefined symbol: _Z16pg_detoast_datumP7varlena

extern "C" { ... } around all the Postgres include files, too, no doubt.
You might wish to go and read some information about connecting C and C++,
since you've obviously never done it before ;-)

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Guy Rouillier 2005-02-11 00:54:17 Pgsql conditions do not short circuit?
Previous Message Seamus Thomas Carroll 2005-02-10 23:17:11 Re: Help with adding C-Language Functions