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:
Chances are you forget to link the library
gcc ..... -lcrypt