Re: Extending PostgreSQL in C or C++ - Mailing list pgsql-hackers

From Christof Petig
Subject Re: Extending PostgreSQL in C or C++
Date
Msg-id 3EF045A9.40502@petig-baender.de
Whole thread Raw
In response to Re: Extending PostgreSQL in C or C++  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: pg_get_triggerdef in pg_dump
Next
From: Andreas Pflug
Date:
Subject: Re: pg_get_triggerdef in pg_dump