From: Michael Fuhr <mike@fuhr.org>
To: Rares Vernica <rvernica@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL
Date: Fri, 20 Oct 2006 22:37:15 -0600
Message-ID: <20061021043715.GB78648@winnie.fuhr.org> (raw)
In-Reply-To: <eh9eui$h40$1@sea.gmane.org>
References: <eh9eui$h40$1@sea.gmane.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike@fuhr.org, rvernica@gmail.com
Subject: Re: PostgreSQL 8.1.5 Documentation - Chapter 32. Extending SQL
In-Reply-To: <20061021043715.GB78648@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox