"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