Re: [GENERAL] Questions about libpq!

From: Oleg Broytmann <phd(at)sun(dot)med(dot)ru>
To: Anna Langer <anna_langer(at)hotmail(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Questions about libpq!
Date: 1999-04-19 13:35:38
Message-ID: Pine.SOL2.3.96.SK.990419173354.10832A-100000@sun.med.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello!

All these functions are from libpq. Just link with libpq. Example:

gcc mytest.c -o mytest.exe -lpq

Note: -lpq

On Mon, 19 Apr 1999, Anna Langer wrote:
> We are having some problems with trying to run one of the examples
> that are in the manuale.
>
> This is the output that we get and we can't find any library that
> contains these functions.
>
> /tmp/cca010701.o: In function `exit_nicely':
> /tmp/cca010701.o(.text+0x8): undefined reference to `PQfinish'
> /tmp/cca010701.o: In function `main':
> /tmp/cca010701.o(.text+0x6d): undefined reference to `PQsetdbLogin'
> /tmp/cca010701.o(.text+0x7e): undefined reference to `PQstatus'
> /tmp/cca010701.o(.text+0xa7): undefined reference to `PQerrorMessage'
> /tmp/cca010701.o(.text+0xd9): undefined reference to `PQexec'
> /tmp/cca010701.o(.text+0xf0): undefined reference to `PQresultStatus'
> /tmp/cca010701.o(.text+0x117): undefined reference to `PQclear'
> /tmp/cca010701.o(.text+0x12f): undefined reference to `PQclear'
> /tmp/cca010701.o(.text+0x14b): undefined reference to `PQconsumeInput'
> /tmp/cca010701.o(.text+0x157): undefined reference to `PQnotifies'
> /tmp/cca010701.o(.text+0x1a1): undefined reference to `PQfinish'
>
>
> Please help us!
>
> Anna and Maria
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>

Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2/ phd2(at)earthling(dot)net
Programmers don't die, they just GOSUB without RETURN.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message JT Kirkpatrick 1999-04-19 22:24:16 problem when vacuuming. . .
Previous Message Valerio Santinelli 1999-04-19 13:11:19 Re: [GENERAL] pg_dumpall troubles