From: Gus Nwosu <anwosu@houston.geoquest.slb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Vasquez, Jason <Jason.Vasquez@Connect.Xerox.com>
Cc: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] PgConnection
Date: Mon, 26 Oct 1998 08:29:12 -0600
Message-ID: <199810261431.IAA01489@gqserver.houston.geoquest.slb.com> (raw)
In-Reply-To: <9023.909151011@sss.pgh.pa.us>
References: <Your message of Fri, 23 Oct 1998 07:35:24 -0400 <C1CB538EFB88D111A60200805FBB99118B7664@CINMSG1>
At compile time include the line -L/usr/lib -lcrypt while building the failed
objects.
Rgds
Gus
At 09:56 AM 10/23/98 -0400, Tom Lane wrote:
>"Vasquez, Jason" <Jason.Vasquez@Connect.Xerox.com> writes:
>> Hee's the error I receive:
>> $> g++ -I/usr/local/pgsql/include mytest.cpp -L/usr/local/pgsql/lib -lpq++
-lpq
>> /usr/local/pgsql/lib/libpq.a(fe-auth.o): In function
'pg_password_sendauth':
>> fe-auth.o(.text+0.17): undefined reference to 'crypt'
>
>> I even tried making sure that crypt.h was in g++'s search path, but I still
>> got the same error....
>
>This is the same problem as before: you are seeing a link-time error not
>a compile-time error. You have to pay attention to whether the library
>file can be found as well as whether the header file can be found.
>
>On some machines the crypt functions are not in the standard C library
>but in a separate file that you have to write "-lcrypt" to link in.
>Perhaps yours is like that.
>
> regards, tom lane
>
=============================================================
Gus
Nwosu
Tel: 1-(713)350-4301
GeoRise Training Manager
Fax: 1-(713)350-4103
5444 Westheimer Road
Houston. Tx 77056 email:
anwosu@houston.geoquest.slb.com
=============================================================
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: anwosu@houston.geoquest.slb.com, tgl@sss.pgh.pa.us, Jason.Vasquez@Connect.Xerox.com, pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] PgConnection
In-Reply-To: <199810261431.IAA01489@gqserver.houston.geoquest.slb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox