pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedundefined reference to crypt
3+ messages / 2 participants
[nested] [flat]
* undefined reference to crypt
@ 1999-02-26 14:49 Patrice DUMAS <pdumas@inforoutes-ardeche.fr>
0 siblings, 2 replies; 3+ messages in thread
From: Patrice DUMAS @ 1999-02-26 14:49 UTC (permalink / raw)
To: pgsql-interfaces
Hi,
I am discovering PostGreSQL and Linux.
I have a little problem with libpq.
Here is my C program (it's empty!)
/* --------- essai.c -------------------------- */
#include <stdio.h>
#include "/usr/lib/pgsql/include/libpq-fe.h"
int main(void)
{
}
/* ------------------------------------------- */
Here is my makefile:
essai.o: essai.c
gcc -c essai.c
essai: essai.o
gcc -o essai essai.o -lpq
When I do "make essai", the following error appears:
/usr/lib/libpq.so: undefined reference to crypt.
collect2: ld retruned 1 exit status
I suppose a file/library is missing.
Can you help me?
The postgres' programmer guide refers to several examples in
/src/test/regress.
These samples are not installed with my postgres distribution .
Where can I download them (or other examples?).
Sorry for my poor english and thank you for your answers,
Patrice DUMAS
Ardèche, FRANCE
pdumas@inforoutes-ardeche.fr
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [INTERFACES] undefined reference to crypt
@ 1999-02-26 16:01 James Thompson <jamest@math.ksu.edu>
parent: Patrice DUMAS <pdumas@inforoutes-ardeche.fr>
1 sibling, 0 replies; 3+ messages in thread
From: James Thompson @ 1999-02-26 16:01 UTC (permalink / raw)
To: Patrice DUMAS <pdumas@inforoutes-ardeche.fr>; +Cc: pgsql-interfaces
On Fri, 26 Feb 1999, Patrice DUMAS wrote:
>
> essai.o: essai.c
> gcc -c essai.c
> essai: essai.o
> gcc -o essai essai.o -lpq
>
try adding a -lcrypt after the -lpg on the line above
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [INTERFACES] undefined reference to crypt
@ 1999-02-26 16:07 James Thompson <jamest@math.ksu.edu>
parent: Patrice DUMAS <pdumas@inforoutes-ardeche.fr>
1 sibling, 0 replies; 3+ messages in thread
From: James Thompson @ 1999-02-26 16:07 UTC (permalink / raw)
To: Patrice DUMAS <pdumas@inforoutes-ardeche.fr>; +Cc: pgsql-interfaces
On Fri, 26 Feb 1999, Patrice DUMAS wrote:
> The postgres' programmer guide refers to several examples in
> /src/test/regress.
> These samples are not installed with my postgres distribution .
> Where can I download them (or other examples?).
>
Almost forgot this part. Go to www.postgresql.org and download the source
distribution. The examples are in there.
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~1999-02-26 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-02-26 14:49 undefined reference to crypt Patrice DUMAS <pdumas@inforoutes-ardeche.fr>
1999-02-26 16:01 ` James Thompson <jamest@math.ksu.edu>
1999-02-26 16:07 ` James Thompson <jamest@math.ksu.edu>
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