Re: Extending PostgreSQL in C or C++

Christof Petig <christof@petig-baender.de>

From: Christof Petig <christof@petig-baender.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Sebastien Lemieux <slemieux@elitra.com>, pgsql-hackers@postgresql.org
Date: 2003-06-18T10:57:45Z
Lists: pgsql-hackers
Tom Lane wrote:
> Sebastien Lemieux <slemieux@elitra.com> writes:
> 
>>Then I get:
>>ERROR:  Can't find function add_one in file /[PathToTheObject]/pgsql_bio.so
> 
> 
> Hmm.  I can't see anything wrong with what you did, either.
> 
> It's possible that the dynamic linker has printed additional messages to
> the backend's stderr.  Make sure that you have stderr set up to go
> someplace useful (not /dev/null) and look there to see if you can learn
> more.

most likely he has to declare the function as extern "C". A nm 
pgsql_bio.so can tell more.

    Christof