pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alfred Perlstein <bright@wintelcom.net>
To: Gustavo R. Bonet <gbonet@bna.com.ar>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: C program compilation
Date: Fri, 27 Oct 2000 15:15:12 -0700
Message-ID: <20001027151511.J28123@fw.wintelcom.net> (raw)
In-Reply-To: <NDBBLBDCDKFEOBJMLCEDGEGNCAAA.gbonet@bna.com.ar>
References: <NDBBLBDCDKFEOBJMLCEDGEGNCAAA.gbonet@bna.com.ar>

* Gustavo R. Bonet <gbonet@bna.com.ar> [001027 14:54] wrote:
> I'm a beginner in PostGreSQL and I'm trying to meka my first interface with
> a C
> program.
> 
> Like the documentation says, I'm using the following sentence to compile:
> 
> gcc -o output_name -I /usr/include/pgsql -lpq myprogram.c
> 
> But, in two diferent Linux servers the answer was:
> 
> /usr/lib/libpq.so: undefined reference to `crypt'
> collect2: ld returned 1 exit status

try adding '-lcrypt' to the compile flags.

-Alfred (who also stumbled on this)



view thread (4+ messages)  latest in thread

Message-ID: <20001027151511.J28123@fw.wintelcom.net>
Permalink:  ../20001027151511.J28123@fw.wintelcom.net/
Also on:    postgresql.org/message-id/20001027151511.J28123@fw.wintelcom.net

 · 

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: bright@wintelcom.net, gbonet@bna.com.ar
  Subject: Re: C program compilation
  In-Reply-To: <20001027151511.J28123@fw.wintelcom.net>

* 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