Re: Can't build libpq test example

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Can't build libpq test example
Дата
Msg-id 200502092235.j19MZ1q18324@candle.pha.pa.us
обсуждение исходный текст
Ответ на Can't build libpq test example  (Jim Morcombe <jim@seekchrist.org>)
Ответы Re: Can't build libpq test example  ("Larry Rosenman" <ler@lerctr.org>)
Список pgsql-general
Strange, it looks OK to me with the -lpq.  My guess is that it is some
SCO strangeness but I am not sure what.  Do an 'nm' on libpq.so and see
if those symbols are in there.

---------------------------------------------------------------------------

Jim Morcombe wrote:
> Can anyone help me with this problem?
>
> I have installed postgresql-7.2.1 and am trying to compile one of the
> test programs from the directory src/test/examples.
>
> I am running an old version of SCO Openserver 5
>
> I am using the following command:
>
>   cc testlibpq.c -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq
> -otestlibpq
>
> I receive the following error messages:
>
> undefined                       first referenced
>   symbol                             in file
> PQfinish                            testlibpq.o
> PQsetdbLogin                        testlibpq.o
> PQstatus                            testlibpq.o
> PQerrorMessage                      testlibpq.o
> PQexec                              testlibpq.o
> PQresultStatus                      testlibpq.o
> PQclear                             testlibpq.o
> PQnfields                           testlibpq.o
> PQfname                             testlibpq.o
> PQgetvalue                          testlibpq.o
> PQntuples                           testlibpq.o
> ld fatal: Symbol referencing errors. No output written to testlibpq
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Understanding EXPLAIN ANALYZE output
Следующее
От: "Ed L."
Дата:
Сообщение: Re: Understanding EXPLAIN ANALYZE output