Re: Use of inv_getsize in functions

Поиск
Список
Период
Сортировка
Искать
От
Michael Fuhr
Тема
Re: Use of inv_getsize in functions
Дата
Msg-id
20050810151407.GA46813@winnie.fuhr.org
Ответ на
Список
Дерево обсуждения
Use of inv_getsize in functions "Soeren Laursen" <sl@scrooge.dk>
Re: Use of inv_getsize in functions Michael Fuhr <mike@fuhr.org>
Re: Use of inv_getsize in functions "Soeren Laursen" <sl@scrooge.dk>
Re: Use of inv_getsize in functions Alvaro Herrera <alvherre@alvh.no-ip.org>
On Tue, Aug 09, 2005 at 10:54:49PM +0200, Soeren Laursen wrote:
> I have used other function calls like
> inv_open with no problem, but when I load this modules I get:
> 
> undefined symbol: inv_getsize

Notice the word "static" in the definition of inv_getsize() in
src/backend/storage/large_object/inv_api.c:

static uint32
inv_getsize(LargeObjectDesc *obj_desc)
{   ...
}

I don't know if there's a good reason for inv_getsize() being static.
Maybe your code could use inv_seek() instead.

> No errors when compiling.

If you compile with warning flags, then you should at least have
gotten a warning like "implicit declaration of function `inv_getsize'".
That's a hint that something's wrong.

-- 
Michael Fuhr

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Alvaro Herrera
Дата:
FAQ