Hi, do you know how to solve this error? Thanks!!
There should not be 2 folders (directories) named
readability. The project panel should look like this:
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.