Alex Shnitman <[EMAIL PROTECTED]> writes:
> Oded Arbel writes:
>
> > I'm trying to write a c program that uses the crypt function
> > (char *crypt(const char *key, const char *salt) ) but when I try to
> > compile it, I get these error messages :
> > /tmp/cca119381.o: In function `passchek':
> > /tmp/cca119381.o(.text+0x64): undefined reference to `crypt'
> > /tmp/cca119381.o: In function `passchng':
> > /tmp/cca119381.o(.text+0x283): undefined reference to `crypt'
> >
> > I think I should have the relevant source some where around here (I have
> > the relevant man page, so I figured...) but I couldn't figure out which,
> > where, what and .. ahmm... who ?
>
> The only thing you need to do is add "-lcrypt" to the linking command
> line. In glibc crypt is in its own library.
I wrote earlier that I had found it in libc, but I am on a machine
with libc5 now. Sorry if that was misleading.
--
Oleg Goldshmidt [EMAIL PROTECTED]
BLOOMBERG L.P. (BFM) [EMAIL PROTECTED]