Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [206.210.65.6]) by hub.org (8.9.1/8.8.8) with ESMTP id JAA12922 for ; Fri, 23 Oct 1998 09:57:27 -0400 (EDT) (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 JAA09025; Fri, 23 Oct 1998 09:56:51 -0400 (EDT) To: "Vasquez, Jason" cc: pgsql-interfaces@hub.org Subject: Re: [INTERFACES] PgConnection In-reply-to: Your message of Fri, 23 Oct 1998 07:35:24 -0400 Date: Fri, 23 Oct 1998 09:56:51 -0400 Message-ID: <9023.909151011@sss.pgh.pa.us> From: Tom Lane "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