| 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: | 3655E0B8.6963D1DD@shadow.net | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| 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
`pg_password_sendauth':
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
    rbarr(at)shadow(dot)net
| From | Date | Subject | |
|---|---|---|---|
| Next Message | kirill | 1998-11-21 09:04:49 | pgaccess problem (with libpgtcl) | 
| Previous Message | David Hartwig | 1998-11-20 21:23:51 | Re: [INTERFACES] Re: OBBC for MS Access97 |