John Gunther <inbox(at)bucksvsbytes(dot)com> writes:
> In line with your responses, I'm already supplying my library with the
> prototypes for all the needed PG functions, like textin. The problem is
> when compiling and linking, how does libtool/gcc find or point to the
> actual code for textin so it can execute it when needed.
It doesn't. You should be building a shared library, not a standalone
executable. Unresolved references get bound when the library is loaded
by the backend, not when the library is built.
I'd suggest building one of the backend-extension modules in contrib/,
and looking to see what commands get used to compile and link on your
platform.
regards, tom lane