Hello,
Im have very little experience with any of this, and as such i have been thron by an error! If anyone could help i would be very helpfull!
To complie im running this command:
gcc /crypt.c -o bin/crypt -lcrypt
The code that im trying to compile is this: (i can take no credit for this! was writen by someone else in this forum!)
Quote:
#define _XOPEN_SOURCE
#include <unistd.h>
int main (int argc, char* argv[]) {
char *result;
result= crypt (argv[1], "$1$");
// printf ("the encrypted password for %s is %s\n", argv[1], result);
printf ("%s\n", result);
return (0);
}
|
And the error is:
Quote:
/usr/bin/ld: cannot open output file bin/crypt: No such file or directory
collect2: ld returned 1 exit status
|
Where have i gone wrong? Mant thanks!