Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt
Date
Msg-id 16348.941569798@sss.pgh.pa.us
Whole thread Raw
In response to Redhat 6.0 Link Error: Undefined Reference to crypt  ("Klein, Robert" <rvklein@ober.com>)
List 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 by date:

Previous
From: "Klein, Robert"
Date:
Subject: Redhat 6.0 Link Error: Undefined Reference to crypt
Next
From: User &
Date:
Subject: why don't this create table work?