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

libpq linking problem

From: Emil Malmberg <emil(at)iconmedialab(dot)dk>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: libpq linking problem
Date: 1999-12-13 08:59:45
Message-ID: Pine.LNX.4.10.9912130959110.8929-100000@emm.icondk.dk (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi!

I'm considering using postgreSQL via the libpq interface with an
application I'm developing in C. I tried compiling one of the example
programs (the first one) from the libpq documentation. I received the
following error:

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

Does anyone know what the problem might be? I'm on a Redhat Linux
2.2.5-15 system, with the following installations:
gcc: egcs 2.91.66
ld: 2.9.1
postgreSQL: 6.4.2-3

Thanks for your help.


-----
Emil Malmberg
Programmer
Icon Medialab Denmark

+45 3338 4958
emil(at)iconmedialab(dot)dk
www.iconmedialab.dk


Responses

pgsql-interfaces by date

Next:From: Michael MeskesDate: 1999-12-13 09:46:35
Subject: Re: [INTERFACES] libpq linking problem
Previous:From: Emil MalmbergDate: 1999-12-13 08:54:34
Subject: libpq linking problem

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