Re: [PORTS] Port Bug Report: compile errors for embedded sql (in c)

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [PORTS] Port Bug Report: compile errors for embedded sql (in c)
Дата
Msg-id 199906020106.VAA09180@candle.pha.pa.us
обсуждение исходный текст
Ответ на Port Bug Report: compile errors for embedded sql (in c)  (Unprivileged user <nobody>)
Список pgsql-ports
> I get this error when I complie ?
> (I am  not a new 'c' programmer but I am new to embedded sql)
> /usr/lib/libecpg.so: undefined reference to `crypt'
> collect2: ld returned 1 exit status
>
> --------------------------------------------------------------------------
>
> Test Case:
> ----------
> This is what I use to compile
>  gcc -g -o 2easql 2easql.c -I /usr/include/pgsql/
> -L /usr/include/pgsql/lib -lecpg -lpq


Do this:


 gcc -g -o 2easql 2easql.c -I /usr/include/pgsql/
-L /usr/include/pgsql/lib -lecpg -lpq -lcrypt
                                      ^^^^^^^

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Unprivileged user
Дата:
Сообщение: Port Bug Report: Insertion of line return character inconsistent.
Следующее
От: Sum Wu
Дата:
Сообщение: Installation of Postgres v6.4.2