I am using the below code that i found somewhere in the net and i am getting an error when i try to build it. The compilation is ok.
Here is the error:
crypt.c:(.text+0xf1): undefined reference to 'crypt' is a linker error.
crypt.c:(.text+0xf1): undefined reference to 'crypt'
Try linking with -lcrypt : gcc crypt.c -lcrypt.
-lcrypt
gcc crypt.c -lcrypt