I get the following error while trying to execute a command.


~/pset1/hello/ $ hello
bash: hello: command not found

'make hello' worked fine:

~/pset1/hello/ $ make hello
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow    hello.c  -lcrypt -lcs50 -lm -o hello

Any idea how to get this resolved ?



I don't think you saw the video properly. To run c executable files, you should use ./ and the executable file's name. So in this case it is ./hello

  • Thanks :). You are right .. Jan 12 '21 at 20:58

You must log in to answer this question.

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