[HACKERS] Re: Linking a shared library against a C function

2001-08-05 Thread Peter Eisentraut
John Gray writes: > Is it OK just to link the .so of my backend function against the expat > library? i.e. to do > > gcc -shared -lexpat -o pgxml.so pgxml.o > > as the link stage (it seems to work fine) -or is there a portability > problem with this? On some platforms the dynamic loader will hav

[HACKERS] Re: Linking

2000-10-22 Thread Larry Rosenman
I've already cc'd PeterE. I suspect we want the -lpq build to have -lsocket (at least on THIS (unixware) platform. Larry * KuroiNeko <[EMAIL PROTECTED]> [001022 19:25]: > > Well, all in all, adding -lsocket is just enough. I was trying to compile > /home/ed/t.c, which contains just PQconnectd