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

Linking problems

From: Randy Barrett <rbarr(at)shadow(dot)net>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Linking problems
Date: 1998-11-20 21:35:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
I wrote a trivial (so I didn't include, but I will if I must...) C
program using the libpq C interface which compiles cleanly.  My problem
is with the linker.  There are two files,  one contains (tested) code
for a standard set of cgi functions and the other contains code that
calls the db.  Here's the gcc command I'm using:

gcc login.c stdcgi.c  -I /usr/local/pgsql/include/ -L
/usr/local/pgsql/lib/ -lpq

And here's the error I'm getting:

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

I haven't dug through the postgreSQL code and perhaps I haven't read the
user manual thoroughly enough, but I'm not making any calls to
"pg_password_sendauth", so I'm confused with this error message.

Any help would be appreciated.

    Randy Barrett

pgsql-interfaces by date

Next:From: kirillDate: 1998-11-21 09:04:49
Subject: pgaccess problem (with libpgtcl)
Previous:From: David HartwigDate: 1998-11-20 21:23:51
Subject: Re: [INTERFACES] Re: OBBC for MS Access97

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