When I try to compile the adder program from the week1 walkthrough, I get an error saying

 make: Nothing to be done for 'adder'"

I have checked that I am in the right directory, and have included <cs50.h> and <stdio.h> libraries in my program. Can anyone help please? thanks.


Make sure the file named adder has the extension .c. Also make sure you're executing this command

make adder


make adder.c
  • I had this same problem. Solved by adding '.c' to the filename. I think this bit of info should be emphasized more in pset 1. Thank you Kareem!
    – user2936
    Nov 6 '14 at 2:48
  • like for me it changed nothing. Doesn't matter if i put a command "make adder" or "make adder.c" . still "nothing to be done for adder. I have no idea what to do. Tried to start with another hello2 and still the same.PLEASE help, I'm totally newbie!!
    – user9746
    Sep 29 '15 at 0:39
  • @Maugoshia, if you have a new question, you should start your own post. make sure to provide the necessary details.
    – kzidane
    Sep 29 '15 at 7:26

You must log in to answer this question.

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