crypt function library on RH 5.2

crypt function library on RH 5.2

Post by Mister Fros » Sat, 24 Apr 1999 04:00:00



I tried to compile a simple program under a RedHat 5.2 system.
i added the define and include lines as mentioned in the crypt man page
but ld don't find
the code.
Is there a specific library for crypt function ?
Thanks for your help.
 
 
 

crypt function library on RH 5.2

Post by Viljo Haka » Sat, 24 Apr 1999 04:00:00



Quote:>I tried to compile a simple program under a RedHat 5.2 system.
>i added the define and include lines as mentioned in the crypt man page
>but ld don't find
>the code.
>Is there a specific library for crypt function ?

Yes, libcrypt. Try compiling with -lcrypt option.
Example:
        gcc -o test test.c -lcrypt

--
vh

 
 
 

crypt function library on RH 5.2

Post by Paul Kimo » Sat, 24 Apr 1999 04:00:00



> I tried to compile a simple program under a RedHat 5.2 system.
> i added the define and include lines as mentioned in the crypt man page
> but ld don't find
> the code.
> Is there a specific library for crypt function ?

The crypt() function is (now) in /usr/lib/libcrypt.so and libcrypt.a.

--