[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Error in compilation with function crypt( )



Santosh Singh wrote (sanhackin@xxxxxxxxx):

>   anyone can help me when I tried to compile a program
> using function crypt(), encrypt() defined in unistd.h
> I am not getting it.

Did you link with libcrypt??  Try -

    gcc -Wall foo.c -lcrypt

-Raja