Re: Linking to palloc and elog. (fwd)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Robert J(dot) Sprawls" <sprawlsr(at)worldnet(dot)att(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Linking to palloc and elog. (fwd)
Date: 2000-07-10 06:01:23
Message-ID: 25396.963208883@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Robert J. Sprawls" <sprawlsr(at)worldnet(dot)att(dot)net> writes:
> gcc -g -I /usr/pgsql/include testepg.o compos.o vect3d.o -o testepg
> compos.o: In function `compos_in':

> /home/sprawlsr/devel/projects/galwars/misc/compos.c:10: undefined
> reference to `elog'

Sounds like you're trying to make a standalone program from something
that's intended to be a dynamically loaded addon to the backend
(ie, a shared library). There are some examples in contrib/ of the
right way to do this.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2000-07-10 06:03:18 Re: Find all the dates in the calendar week?
Previous Message Robert J. Sprawls 2000-07-10 05:46:45 Linking to palloc and elog. (fwd)