1

~/workspace/pset1/cash/ $ make cash make: *** No rule to make target `cash'. Stop. ~/workspace/pset1/cash/ $ cd pset1 bash: cd: pset1: No such file or directory

0

Did you save the file as cash.c, and did you save it in the directory ~/workspace/pset1/cash/? Only then, make could deduct from the existence of a .c file of the same name how to build this target. As you have no Makefile, it will use an internal rule (and several environment variables) for that, but it needs to see the cash.c file.

If you're unsure, ls (short for "list") lists all the files in the current directory.

2
  • ya i did save in the directory. Jun 5 '18 at 11:55
  • How do I do so? May 26 '20 at 6:37

You must log in to answer this question.

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