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
pgpeVZp3zi0eG.pgp
Description: PGP signature