pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Gustavo R. Bonet <gbonet@bna.com.ar>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: C program compilation
Date: Sat, 28 Oct 2000 01:37:46 +0000
Message-ID: <39FA2DEA.EB6F7DAA@alumni.caltech.edu> (raw)
References: <NDBBLBDCDKFEOBJMLCEDGEGNCAAA.gbonet@bna.com.ar>

> Like the documentation says, I'm using the following sentence to compile:
> gcc -o output_name -I /usr/include/pgsql -lpq myprogram.c
> /usr/lib/libpq.so: undefined reference to `crypt'
> collect2: ld returned 1 exit status

Try adding "-lcrypt" to the line.

                    - Thomas



view thread (4+ messages)

Message-ID: <39FA2DEA.EB6F7DAA@alumni.caltech.edu>
Permalink:  ../39FA2DEA.EB6F7DAA@alumni.caltech.edu/
Also on:    postgresql.org/message-id/39FA2DEA.EB6F7DAA@alumni.caltech.edu

 · 

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: lockhart@alumni.caltech.edu, gbonet@bna.com.ar
  Subject: Re: C program compilation
  In-Reply-To: <39FA2DEA.EB6F7DAA@alumni.caltech.edu>

* 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