Received: from gqserver.houston.geoquest.slb.com (gqserver.houston.geoquest.slb.com [163.185.30.150]) by hub.org (8.9.1/8.9.1) with SMTP id JAA07691 for ; Mon, 26 Oct 1998 09:38:13 -0500 (EST) (envelope-from anwosu@houston.geoquest.slb.com) Received: from grise20 by gqserver.houston.geoquest.slb.com (SMI-8.6/GeoQuest-Internal V1.02) id IAA01489; Mon, 26 Oct 1998 08:31:33 -0600 Message-Id: <199810261431.IAA01489@gqserver.houston.geoquest.slb.com> X-Sender: anwosu@163.185.30.150 (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0.2 Date: Mon, 26 Oct 1998 08:29:12 -0600 To: Tom Lane From: Gus Nwosu Subject: Re: [INTERFACES] PgConnection Cc: "Vasquez, Jason" , pgsql-interfaces@hub.org In-Reply-To: <9023.909151011@sss.pgh.pa.us> References: Mime-Version: 1.0 Content-Type: multipart/alternative; types="text/plain,text/html"; boundary="=====================_739079==_.ALT" --=====================_739079==_.ALT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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" 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 >=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Gus Nwosu=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0Tel:=A0 1-(713)350-4301 GeoRise Training Manager=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 =20 Fax: 1-(713)350-4103 5444 Westheimer Road Houston. Tx 77056=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0email: anwosu@houston.geoquest.slb.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 --=====================_739079==_.ALT Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
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.
>
>       &nb= sp;         &nbs= p;     regards, tom lane
>=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Gus Nwosu=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0Tel:=A0 1-(713)350-4301
GeoRise Training Manager=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0   Fax: 1-(713)350-4103
5444 Westheimer Road
Houston. Tx 77056=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0email: anwosu@houston.geoquest.slb.com
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--=====================_739079==_.ALT--