[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where is crypt?



Matthew Parry wrote:
> 
> When I try to compile a program with libpq I get the message
> 
> /usr/lib/libpq.so: undefined reference to `crypt'
> 
> I have unistd.h and _XOPEN_SOURCE in my program so what is going
> on here?  Where is the crypt function?

crypt is kept in a seperate library for some reason or another.
Add the -lcrypt flag to your compilation.

-Mitch

Attachment: pgpO1yLuvwi15.pgp
Description: PGP signature


Reply to: