Re: problems in compiling

From: bmccoy(at)chapelperilous(dot)net
To: Mathew Chandy <mathew(dot)chandy(at)eximsoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problems in compiling
Date: 2000-10-10 01:56:41
Message-ID: Pine.LNX.4.10.10010092152050.4175-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 5 Oct 2000, Mathew Chandy wrote:

> i get a compilation error which is of the following
>
> /tmp/ccTCPDUs.o(.text+0x77): undefined reference to `PQstatus'

...

>
> what is the reason . i use the folowing command line cc file.c

It's trying to resolve external references (link) in your executable but
you haven't told it to link against the Postgres libraries. Try

cc file.c -lpq

Brett W. McCoy
http://www.chapelperilous.net
---------------------------------------------------------------------------
The Kennedy Constant:
Don't get mad -- get even.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bmccoy 2000-10-10 01:58:17 Re: Question
Previous Message bmccoy 2000-10-10 01:47:13 Re: distinct