Re: A "linking" Question

From: Terry Lee Tucker <terry(at)esc1(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: A "linking" Question
Date: 2004-06-03 14:13:23
Message-ID: 200406031013.23206.terry@esc1.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ah, that's the information I needed. I already have a "split" version, I just
wanted to know if it was possible to it the other way. You've been very
helpful.

Thanks...

On Thursday 03 June 2004 09:50 am, Martijn van Oosterhout saith:
> On Thu, Jun 03, 2004 at 09:08:40AM -0400, Terry Lee Tucker wrote:
> > Let me explain:
> >
> > I have written a "C" function which contains calls to other functions,
> > all of which work with an API to a mileage database product called
> > PCMiler. These functions make connections to the PCMiler databae, do
> > error checking on the origin and destination, get directions, etc. There
> > is only one function loaded into postgres and it makes calls to
> > everything else. I create a shared object library containing one object
> > file: pcmiler.o and also containing a link to the PCMiler SO,
> > libpcmsrv.so. Here is the make file code:
>
> <snip>
>
> > All the complaints are regarding pgsql server functions. Obviously, I
> > need to link with some sort of library, but I don't know which one. I'm
> > already linking with libpq and I tried libepcg but that didn't work. I'm
> > not very knowledgeable regarding some of these things so please excuse my
> > ingorance. Can somebody give me a clue as to the error of my ways?
>
> There is no library with those functions. They exist within the server
> binary itself and are exported to dynamically linked modules that are
> loaded in.
>
> I think you need to split your library in two, one part which depends
> on being loaded into postgresql and the part that can be used standalone.

--

Work: 1-336-372-6812
Cell: 1-336-363-4719
email: terry(at)esc1(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-06-03 14:24:51 Re: Page access pattern in query plan using index scan
Previous Message Derek Chen-Becker 2004-06-03 14:05:34 Re: JDBC: what exactly does nullsAreSortedHigh() return?