Skip site navigation (1) Skip section navigation (2)

undefined reference to crypt

From: "Patrice DUMAS" <pdumas(at)inforoutes-ardeche(dot)fr>
To: <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: undefined reference to crypt
Date: 1999-02-26 14:49:22
Message-ID: 000201be619f$64683d80$5f6cfea9@blneige (view raw or flat)
Thread:
Lists: 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(at)inforoutes-ardeche(dot)fr





Responses

pgsql-interfaces by date

Next:From: James ThompsonDate: 1999-02-26 16:01:44
Subject: Re: [INTERFACES] undefined reference to crypt
Previous:From: Margarita BarvinokDate: 1999-02-26 14:23:04
Subject: Re: [INTERFACES]- SELECT statement

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group