~/workspace/ $ cd pset1 ~/workspace/pset1/ $ ./integer bash: ./integer: No such file or directory
2 Answers
Simply put, the file integer
, the executable file, doesn't exist. Only the source code file integer.c
exists. You need to make integer
first, in order to compile the source code and produce the executable file integer
. THEN, you can run it with the command ./integer
.
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)
-
Thanks Cliff B. I got ~/workspace/pset1/ $ make integer clang -fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wshadow integer.c -lcrypt -lcs50 -lm -o integer ~/workspace/pset1/ $ ./integer– 912scrDec 8, 2017 at 11:19