I'm on the crack challenge from pset2 and I don't understand how to compile the program.
When I use
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow crack.c -lcrypt -lcs50 -lm -o crack
as suggested (in the directory of crack) -nothing happens with no arguments. If I give arguments this error appears
clang: error: no such file or directory: '22'
And when I try to compile it with standard make
method - the crypt()
function doesn't seem to work.
Speaking of which - I can't quite understand how it works, man crypt
and problem explanation is quite obscure to me. Could you please give me a hint or, maybe, something to watch or read on the subject.
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow crack.c -lcrypt -lcs50 -lm -o crack
does it create thecrack
output file? If so, what happens when you run./crack
?