Guess you gotta link with crypt library ... compile with -lcrypt option. Also when you're stuck, cut and paste the error messages too, this helps us to track the problem. HTH Kousik Santosh Singh arranged electrons thus: > anyone can help me when I tried to compile a program > using function crypt(),