Обсуждение: Questions about libpq!

Поиск
Список
Период
Сортировка

Questions about libpq!

От
"Anna Langer"
Дата:
Hi!

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

Re: [GENERAL] Questions about libpq!

От
Oleg Broytmann
Дата:
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@earthling.net
           Programmers don't die, they just GOSUB without RETURN.