3

For pset5 I did as suggested and copied copy.c to a new file named whodunit.c. I've left everything the same but hopefully changed the red pixel values. When I go to compile using make I get this message:

make: Nothing to be done for `whodunit.c'.

I have not got a whodunit program in the directory so it definitely has not already compiled. What am I missing here?

1 Answer 1

8

You are most probably doing

make whodunit.c

which should be

make whodunit

I also often get confused with these. So there is a way to think for it, always remember, you want to create executable that's why you write make whodunit, you don't want to create whodunit.c(ofc you are the one who is going to write it and not the computer), so you don't write make whodunit.c. That's how I memorize that.

Good Luck.

2
  • Thanks sinister !!! You've solved my hadache ! :-)
    – user10189
    Commented Nov 13, 2015 at 0:02
  • Great answer, I like your way of remembering which command is correct :D
    – Spirit
    Commented Sep 7, 2016 at 15:18

You must log in to answer this question.

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