pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Emil Malmberg <emil@iconmedialab.dk>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] libpq linking problem
Date: Mon, 13 Dec 1999 10:46:35 +0100
Message-ID: <19991213104635.A1990@fam-meskes.de> (raw)
In-Reply-To: <Pine.LNX.4.10.9912130959110.8929-100000@emm.icondk.dk>
References: <Pine.LNX.4.10.9912130959110.8929-100000@emm.icondk.dk>

On Mon, Dec 13, 1999 at 09:59:45AM +0100, Emil Malmberg wrote:
> I'm considering using postgreSQL via the libpq interface with an
> application I'm developing in C. I tried compiling one of the example

I hope you know that there is also an embedded SQL interface. :-)

> ...
> % gcc test.c -lpq
> /usr/lib/libpq.so: undefined reference to 'crypt'

Just add -lcrypt. Glibc2 needs to add it.

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De           | Use PostgreSQL!



view thread (3+ messages)

Message-ID: <19991213104635.A1990@fam-meskes.de>
Permalink:  ../19991213104635.A1990@fam-meskes.de/
Also on:    postgresql.org/message-id/19991213104635.A1990@fam-meskes.de

 · 

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: meskes@postgresql.org, emil@iconmedialab.dk
  Subject: Re: [INTERFACES] libpq linking problem
  In-Reply-To: <19991213104635.A1990@fam-meskes.de>

* 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