0

a quick look around shows that my error is usually related to someone attempting to compile a .c file but that is not my case here.

I cant run make caesar on my program and I dont know why.

[EDIT: Code removed as unrelated to issue, Honor Code compliance]

enter image description here

  • This usually doesn't have anything to do with the code and everything to do with file locations or other related issues. Can you edit the question and post a screen shot of the IDE showing what happens? – Cliff B Nov 16 '18 at 17:25
  • hmm let me see how to paste my screenshot here.. – Darryl Calder Nov 16 '18 at 17:37
1

This never has anything to do with the contents of the .c file and always to do with the location or name of the file.

It's a common error for new programmers. When you run the command make caesar, the compiler is going to attempt to create an executable file called caesar. It will look for a file called caesar.c in the current directory. Unfortunately, the .c file doesn't exist, so there's nothing to be done.

It looks like you have stored the source code in a file called caesar. If you rename it to caesar.c, you should be able to run the compiler. Of course, that doesn't mean that it will compile successfully. There may be source code errors, but that's for another question. ;-)

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

| improve this answer | |
  • doh! that was epic noobtastic facepalm – Darryl Calder Nov 16 '18 at 19:45
  • Welcome to the club! Your initiation has now begun! ;-) – Cliff B Nov 16 '18 at 19:53

You must log in to answer this question.

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