0

enter image description here ~/workspace/ $ cd pset1 ~/workspace/pset1/ $ ./integer bash: ./integer: No such file or directory

2 Answers 2

1

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. ;-)

1
  • 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
    – 912scr
    Dec 8, 2017 at 11:19
0

you have to use "make filename" and then run the program with "./filename"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .