From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Vasquez, Jason" <Jason(dot)Vasquez(at)Connect(dot)Xerox(dot)com> |
Cc: | pgsql-interfaces(at)hub(dot)org |
Subject: | Re: [INTERFACES] PgConnection |
Date: | 1998-10-23 13:56:51 |
Message-ID: | 9023.909151011@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
"Vasquez, Jason" <Jason(dot)Vasquez(at)Connect(dot)Xerox(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Amiton | 1998-10-23 16:55:42 | Ecpg |
Previous Message | Vasquez, Jason | 1998-10-23 11:35:24 | RE: [INTERFACES] PgConnection |