Thread: Re: Trouble linking with libpq

Re: Trouble linking with libpq

From
lbayuk@mindspring.com (ljb)
Date:
rsprawls@telocity.com wrote:
>Hi,
>    I've tried for about two days now and I'm just not seeing whats wrong. I
>used standard installation so the lib directory is /usr/local/pgsql/lib and
>I'm using -llibpq, but for some odd reason, the linker is not seeing libpq.
>Can someone point out where I'm going wrong? If you need more info, I can
>post a clipped version of the makefile, but this happens when doing
>command-line as well.

Use -lpq not -llibpq. Blame history for this weirdness.