Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA14127 for ; Tue, 2 Nov 1999 14:10:31 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id OAA16350; Tue, 2 Nov 1999 14:09:58 -0500 (EST) To: "Klein, Robert" cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt In-reply-to: Your message of Tue, 2 Nov 1999 10:34:55 -0500 Date: Tue, 02 Nov 1999 14:09:58 -0500 Message-ID: <16348.941569798@sss.pgh.pa.us> From: Tom Lane "Klein, Robert" 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