Re: Extending PostgreSQL in C or C++

Поиск
Список
Период
Сортировка
От Christof Petig
Тема Re: Extending PostgreSQL in C or C++
Дата
Msg-id 3EF045A9.40502@petig-baender.de
обсуждение исходный текст
Ответ на Re: Extending PostgreSQL in C or C++  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: pg_get_triggerdef in pg_dump
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: pg_get_triggerdef in pg_dump