"J. T. Vermeulen" <jtv(at)cistron-office(dot)nl> writes:
> You should be able to solve this either by linking dynamically, or if you
> want to stick with the static version, to link with libpq as well as libpq++.
Yes, for a static link you should say
-lpq++ -lpq
not only -lpq++. Actually, I'd tend to do that for a dynamic link
too... can't hurt.
regards, tom lane