Re: crypt() function is not working.????
- From: jt@xxxxxxxxxxx (Jens Thoms Toerring)
- Date: 28 Oct 2006 13:47:07 GMT
sethukr@xxxxxxxxx wrote:
I'm doing user authendication in my FTP server..
I used crypt() function to encrypt the user password. So that i
can compare with the encripted password in the database.
but, while executing the program, it shows an error as,
UNDEFINED REFERENCE TO CRYPT() FUNCTION.
Are you also linking against libcrypt.so, i.e. have '-lcrypt' in
the command you compile (link, to be precise) your program with?
But i included "unistd.h"..
I just found that on my system using (as required according to the
man page for crypt)
#define _XOPEN_SOURCE
#include <unistd.h>
or just (as according to SUSv3)
#include <unistd.h>
does _not_ make the compiler find the declaration of crypt(3), I
instead had to include <crypt.h>. Does anybody know what could be
the reasons for this?
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de
.
- Follow-Ups:
- Re: crypt() function is not working.????
- From: Pascal Bourguignon
- Re: crypt() function is not working.????
- References:
- crypt() function is not working.????
- From: sethukr
- crypt() function is not working.????
- Prev by Date: Re: crypt() function is not working.????
- Next by Date: Re: crypt() function is not working.????
- Previous by thread: Re: crypt() function is not working.????
- Next by thread: Re: crypt() function is not working.????
- Index(es):
Relevant Pages
|
|