Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt
Дата
Msg-id 16348.941569798@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Redhat 6.0 Link Error: Undefined Reference to crypt  ("Klein, Robert" <rvklein@ober.com>)
Список pgsql-sql
"Klein, Robert" <rvklein@ober.com> writes:
> I'm trying to compile a program on Redhat 6.0 with the Postgres 6.4 the came
> with it.  
> I get the following link error:
> /usr/lib/libpq.so: Undefined reference to "crypt"

You need to add -lcrypt to your link command, probably.  On some
platforms crypt() is part of regular libc, on some it comes in
a separate libcrypt library...
        regards, tom lane


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

Предыдущее
От: "Klein, Robert"
Дата:
Сообщение: Redhat 6.0 Link Error: Undefined Reference to crypt
Следующее
От: User &
Дата:
Сообщение: why don't this create table work?