cs50 library doesn't include adder,conditions. I don't know if I can Continue this class if I can't solve these issues. this is only week one for me.

  • what do you mean, no adder or conditions? Examples?
    – Cliff B
    Jul 6, 2015 at 21:04
  • ake: *** No rule to make target adder'. Stop. jharvard@appliance (~): make conditions-0 make: *** No rule to make target conditions-0'. Stop. jharvard@appliance (~): this is what i get working this work on week one Jul 6, 2015 at 21:07
  • what was the command you entered?
    – Cliff B
    Jul 6, 2015 at 21:14
  • can you give me an example of command? Jul 6, 2015 at 21:19

1 Answer 1


An example of the command is when you enter an instruction on the terminal command line, like make testfile. If there is a file called testfile.c or a rule to build it in the makefile file, then make will create an executable called testfile.

It looks like you're trying to make conditions-0 when the source code file is named conditions.c. To create an executable file, there has to be a source file of the same name with the extension of .c or there has to be a rule or instructions in the makefile file that specifies how to build the target file.

My guess is that you are invoking make with target filenames that are slightly different from the source code file name. For example, make adders will not build if there is no adders.c file. Similarly, make conditions-0 will not build an executable if conditions-0.c doesn't exist, not even if there is a conditions.c file. (Unless there is a build rule for those file names - a later lesson.)

Also understand that examples in the lectures generally don't exist (maybe never?) in the appliance, unless they are part of a pset. You are free to create them though.

  • Thanks Cliff, i really appreciate your help. Jul 6, 2015 at 21:29
  • No problem. If this answered your question, please accept the answer so that your question is removed from the unanswered question pool. Let's keep up on forum maintenance. ;-)
    – Cliff B
    Jul 6, 2015 at 21:31
  • I don't know where the accept tab is. Jul 6, 2015 at 21:58
  • When you look at any answer to your question, there is a check mark in a circle to the left. Just click on that check to accept an answer of your choice. The up and down arrows work the same way to upvote or downvote a question or an answer.
    – Cliff B
    Jul 6, 2015 at 22:01
  • Also, you might want to check out this link: cdn.cs50.net/2014/fall/lectures/1/w/src1w You can download all the lectures' examples from edX under the lecture videos YouTube window. They're available in .zip and .pdf form as well.
    – Andrej
    Jul 7, 2015 at 15:35

You must log in to answer this question.

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