Re: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL
Дата
Msg-id 20061021043715.GB78648@winnie.fuhr.org
обсуждение исходный текст
Ответ на PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL  (Rares Vernica <rvernica@gmail.com>)
Список pgsql-sql
On Thu, Oct 19, 2006 at 08:14:26PM -0700, Rares Vernica wrote:
> I tried the code from "Calling Conventions Version 1 for C-Language 
> Functions"
> 
> I had to add this in order to make it compile:
> /* 16-byte structure, passed by reference */
> typedef struct
> {
>    double  x, y;
> } Point;
> 
> Anyway, the "Point" is still giving me hard time:
> psql:foo.sql:3: ERROR:  could not load library "...foo.so": ld.so.1: 
> postgres: fatal: relocation error: file ...foo.so: symbol 
> PG_GETARG_POINT_P: referenced symbol not found

Try including utils/geo_decls.h -- that should define both the
structure and the macro you're missing.

-- 
Michael Fuhr


В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: conversion of numeric field from MSSQL to postgres
Следующее
От: Tom Lane
Дата:
Сообщение: Re: conversion of numeric field from MSSQL to postgres