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

RE: your mail



> 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 ?
>
> anyone can help ?

Just add -lcrypt to the gcc command line.
This tells it to use the crypt library.
Hope it works for ya,
    - Oren