Re: undefined reference to 'crypt'

From: sieberg(at)cadvision(dot)com (Ross Sieber)
To: pgsql-ports(at)postgresql(dot)org
Subject: Re: undefined reference to 'crypt'
Date: 1999-09-04 12:45:21
Message-ID: 37d11411.1191407@news.cadvision.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

On 30 Aug 1999 19:37:55 -0400, alan_yang(at)hp(dot)com ("alan yang") wrote:

>After successfully installed postgresql, I tried to compile the libpq++ test
>program.
>In a RedHat 6.0 system, I ran into the following error:
>/usr/lib/libpq.so.2.0 undefined reference to 'crypt'.

You probably need to add -lcrypt to the LIBS line in the Makefile.
crypt is sometimes in libs, and sometimes not.

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 1999-09-04 15:18:06 Re: [HACKERS] PostgreSQL 6.5.1: libpq++ libraries on IRIX 6.5
Previous Message Yu Cao 1999-09-04 05:41:49 PostgreSQL 6.5.1: libpq++ libraries on IRIX 6.5