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

linking error

From: "Randall W(dot) Barrett" <rbarr(at)shadow(dot)net>
To: pgsql-interfaces(at)hub(dot)org
Subject: linking error
Date: 1998-12-11 19:50:39
Message-ID: Pine.SOL.3.96.981211144648.1187A-100000@viper (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
I am running Redhat linux (2.0.34) and postgreSQL 6.3.2.  I'm trying to
use the C-interface via libpq, but I'm having linking problems.  The
following is the result when attempting to compile sample1 from the
postgres libpq documentation:

[rbarrett(at)localhost rbarrett]$ gcc -O3 -Wall sample1.c -I
/usr/local/pgsql/include/ -L /usr/local/pgsql/lib/ -lpq 

/usr/local/pgsql/lib//libpq.a(fe-auth.o): In function
fe-auth.o(.text+0x17): undefined reference to `crypt'

Does anyone know how I can fix this?  Need I upgrade to 6.4? 

	Randy Barrett

pgsql-interfaces by date

Next:From: Ramiro ArenasDate: 1998-12-11 22:47:21
Subject: (no subject)
Previous:From: Dan GowinDate: 1998-12-11 15:21:57
Subject: PostgreODBC error

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