0

I typed the program of problem set 1 and get the error message No Rule to Make Target hello.

I run ls and I see hello.c in my dropbox pset folder. See screen shot.

enter image description here

4

A file named hello.c is not the same as a file named Hello.c. Try changing the name of your file to hello.c rather than Hello.c.

Of course you can try

make Hello

but pset1 requires your program to be named hello.c. So if you care about the grade, better change the name of the file.

3
  • ok, now there is a different error - clang -ggdb3 -00 -std=c99 -Wall -Werror hello.c -1cs50 -1m -o hello – Travel636 Nov 2 '14 at 16:55
  • I typed ./hello and it worked properly. Thank you. Solved – Travel636 Nov 2 '14 at 17:05
  • @Travel636 that's not an error. That's, as you'll eventually realize, the compilation command that make executes for you. You may accept the answer to mark your question as solved! Thank you! – Kareem Nov 2 '14 at 17:52
0

1 . You must be in the same directory as the source code 2 . The file name should match exactly (including case)

You must log in to answer this question.

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