"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