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

Re: [INTERFACES] libpq linking problem

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Emil Malmberg <emil(at)iconmedialab(dot)dk>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] libpq linking problem
Date: 1999-12-13 09:46:35
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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/ undefined reference to 'crypt'

Just add -lcrypt. Glibc2 needs to add it.

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(at)Fam-Meskes(dot)De           | Use PostgreSQL!

In response to

pgsql-interfaces by date

Next:From: David OsborneDate: 1999-12-13 10:10:51
Subject: Duplicate INSERTS into pgsql table via PHP
Previous:From: Emil MalmbergDate: 1999-12-13 08:59:45
Subject: libpq linking problem

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