Re: [SQL] C compiler error when using PostGres

Поиск
Список
Период
Сортировка
От G. Anthony Reina
Тема Re: [SQL] C compiler error when using PostGres
Дата
Msg-id 360AB7CC.C1F95E79@nsi.edu
обсуждение исходный текст
Ответ на C compiler error when using PostGres  ("G. Anthony Reina" <reina@nsi.edu>)
Список pgsql-sql
John E. Garrott wrote:
> > ...  Now, during compilation I get the following
> > error:
> >
> > /database/local/pgsql/lib/libpq.a(fe-auth.o): In function
> > `pg_password_sendauth':
> > fe-auth.o(.text+0x17): undefined reference to `crypt'
> >
> > Anyone know how to fix this?
> >

>
> Add -lcrypt to the end of the line that compiles the application.
>
> John


Thanks John,

    That seems to have fixed it. Any idea why I didn't have to include that
library before? Is crypt a PostGres library or a system library?

-Tony

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

Предыдущее
От: "John E. Garrott"
Дата:
Сообщение: Re: [SQL] C compiler error when using PostGres
Следующее
От: "G. Anthony Reina"
Дата:
Сообщение: I can't seem to set the -B option on the postmaster over 3000