Crypt on SunOS
-------------------------------------------------------------------------
Here's my program...
-------------------------------------------------------------------------
#include <stdio.h>
#include <unistd.h>
#include <crypt.h>
int main (int argc, char **argv) {
char salt[] = "aa";
char *password;
/* Read in the user's password and encrypt it. */
password = crypt ( argv[1], salt);
/* Print the results. */
puts ( password );
return 0;
}
-------------------------------------------------------------------------
Here's my error...
-------------------------------------------------------------------------
[root@lserver tmp]# gcc -o go main.c
/tmp/ccsQikMK.o(.text+0x32): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
-------------------------------------------------------------------------
Any help?
-------------------------------------------------------------------------
|