Re: problems in compiling - Mailing list pgsql-general

From bmccoy@chapelperilous.net
Subject Re: problems in compiling
Date
Msg-id Pine.LNX.4.10.10010092152050.4175-100000@chapelperilous.net
Whole thread Raw
In response to problems in compiling  ("Mathew Chandy" <mathew.chandy@eximsoft.com>)
List 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.



pgsql-general by date:

Previous
From: bmccoy@chapelperilous.net
Date:
Subject: Re: distinct
Next
From:
Date:
Subject: Re: Question