Re: testlibpq.c compilation

From: bend(at)ITstuff(dot)net (John Bend)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: testlibpq.c compilation
Date: 2001-08-19 16:01:13
Message-ID: 1d5dfd51.0108190801.5c9483de@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello there.

I am new to PostgreSQL myself but this problem seems similar to the
one I was having with libpq++ compilation.

Visit your local mirror from the www.postgresql.org site and navigate
your way to the online book by Bruce Momjian. There you can find a
chapter on compiling.

http://www.ca.postgresql.org/docs/aw_pgsql_book/index.html

This solved my compile problem and I hope it sovles yours.

John Bend.

"leE" <lee(at)nerds(dot)org(dot)uk> wrote in message news:<vh7f7(dot)14249$LN3(dot)3759609(at)monolith(dot)news(dot)easynet(dot)net>...
> Hi,
>
> I been having what seems to be a usual error in compiling the
> testlibpq.c source from the postgres website.
>
> <SNIP>
> /tmp/ccQ79123.o: In function `exit_nicely':
> /tmp/ccQ79123.o(.text+0xe): undefined reference to `PQfinish'
> /tmp/ccQ79123.o: In function `main':
> /tmp/ccQ79123.o(.text+0x6d): undefined reference to `PQsetdbLogin'
> /tmp/ccQ79123.o(.text+0x81): undefined reference to `PQstatus'
> /tmp/ccQ79123.o(.text+0xb3): undefined reference to `PQerrorMessage'
> </SNIP>
>
> etc etc.
>
> All the responses I've seen to it seem to suggest that it is a
> problem with the path to libpq-fe.h. However I am sure this is not the
> problem which I am experiencing.
>
> Any advice on this would be much appreciated. If it helps this is
> compiled on a FreeBSD4.2 machine, and postgres was compiled with no
> special options at all.
>
> Thanks
>
> Lee

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Bend 2001-08-19 16:05:05 Re: Cant compile using stock RH71 and libpq++
Previous Message Tom Lane 2001-08-19 14:46:52 Re: Serial not so unique?