Re: Help with adding C-Language Functions - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Help with adding C-Language Functions
Date
Msg-id 4724.1108082132@sss.pgh.pa.us
Whole thread Raw
In response to Re: Help with adding C-Language Functions  (Seamus Thomas Carroll <carrolls@cpsc.ucalgary.ca>)
List pgsql-interfaces
Seamus Thomas Carroll <carrolls@cpsc.ucalgary.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


pgsql-interfaces by date:

Previous
From: Seamus Thomas Carroll
Date:
Subject: Re: Help with adding C-Language Functions
Next
From: "Guy Rouillier"
Date:
Subject: Pgsql conditions do not short circuit?