pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Seamus Thomas Carroll <carrolls@cpsc.ucalgary.ca>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Help with adding C-Language Functions
Date: Thu, 10 Feb 2005 19:35:32 -0500
Message-ID: <4724.1108082132@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.60.0502101608560.5503@frost>
References: <Pine.LNX.4.60.0502091954340.5503@frost>
	<Pine.LNX.4.60.0502100114310.5503@frost>
	<27779.1108056673@sss.pgh.pa.us>
	<Pine.LNX.4.60.0502101251550.5503@frost>
	<2358.1108068219@sss.pgh.pa.us>
	<Pine.LNX.4.60.0502101608560.5503@frost>

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



view thread (8+ messages)

Message-ID: <4724.1108082132@sss.pgh.pa.us>
Permalink:  ../4724.1108082132@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4724.1108082132@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, carrolls@cpsc.ucalgary.ca
  Subject: Re: Help with adding C-Language Functions
  In-Reply-To: <4724.1108082132@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox