I keep getting the error "*** No rule to make target `hello'. Stop." when I try to make hello; I searched for this error and tried cd pset1 for example, but it it still shows the same error; any specific advice?
1 Answer
Looking at the screen capture, I would say that hello doesn't compile because you are not in the directory that contains hello.c. It would appear that you are trying to execute the make hello
command in ~/workspace/pset1
but hello.c resides in ~/workspace
. Try moving the hello.c file to the pset1 directory.
If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)