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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Klein, Robert" <rvklein(at)ober(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt
Date: 1999-11-02 19:09:58
Message-ID: 16348.941569798@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Klein, Robert" <rvklein(at)ober(dot)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

Browse pgsql-sql by date

  From Date Subject
Next Message User & 1999-11-02 22:59:15 why don't this create table work?
Previous Message Klein, Robert 1999-11-02 15:34:55 Redhat 6.0 Link Error: Undefined Reference to crypt