pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patrice DUMAS <pdumas@inforoutes-ardeche.fr>
To: pgsql-interfaces@postgreSQL.org
Subject: undefined reference to crypt
Date: Fri, 26 Feb 1999 15:49:22 +0100
Message-ID: <000201be619f$64683d80$5f6cfea9@blneige> (raw)

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







view thread (3+ messages)  latest in thread

Message-ID: <000201be619f$64683d80$5f6cfea9@blneige>
Permalink:  ../000201be619f$64683d80$5f6cfea9@blneige/
Also on:    postgresql.org/message-id/000201be619f$64683d80$5f6cfea9@blneige

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pdumas@inforoutes-ardeche.fr
  Subject: Re: undefined reference to crypt
  In-Reply-To: <000201be619f$64683d80$5f6cfea9@blneige>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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