Re: Linking to palloc and elog. (fwd) - Mailing list pgsql-general

From Tom Lane
Subject Re: Linking to palloc and elog. (fwd)
Date
Msg-id 25396.963208883@sss.pgh.pa.us
Whole thread Raw
In response to Linking to palloc and elog. (fwd)  ("Robert J. Sprawls" <sprawlsr@worldnet.att.net>)
List pgsql-general
"Robert J. Sprawls" <sprawlsr@worldnet.att.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

pgsql-general by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Find all the dates in the calendar week?
Next
From: Chris Bitmead
Date:
Subject: Re: Slashdot discussion