0

enter image description here

Hi, do you know how to solve this error? Thanks!!

1 Answer 1

0

There should not be 2 folders (directories) named readability. The project panel should look like this:

screen shot

On your system there are two folders (directories) named readability and that causes the compiler to fail because it is trying to make an executable named readability, but that name is already taken.

Follow these steps in the terminal to remove (rmdir) the "extra" readability directory.

~/ $ cd readability
~/readability/ $ ls
readability  readability.c
~/readability/ $ rmdir readability
~/readability/ $ ls
readability.c
~/readability/ $ make readability
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow    readability.c  -lcrypt -lcs50 -lm -o readability
~/readability/ $ 
~/readability/ $ ls
readability  readability.c
~/readability/ $ 

Remember, the information before the$ in the command line prompt is the current working directory. There is other feedback too, for instance, the readability.c tab has a red dot. That means recent changes have not been saved to disk. make is going to use the version of readability.c that is on the disk, so don't forget to save changes before attempting to compile.

1
  • Thanks! Now it works :) Very helpful. Commented Apr 27, 2020 at 15:27

You must log in to answer this question.

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