0

I'm doing the hello project for week one and I can't get pass the clang issue. I keep putting clang and it keeps saying error" no such file or directory. but the hello.c file is literally in the hello/ folder so i'm confused why clang isn't working. enter image description here

1 Answer 1

0

I can see why this would give you a big headache. I suspect that somehow, the file hello.c has something corrupting the file name - either a space or a non-printable character in the filename. Try renaming it to something completely different like "foo" and then rename it back to "hello.c" but be careful not to insert any stray chars.

If that doesn't work, open a new file with a different name, copy your code to the new file, delete the old file, and rename the new file to "hello.c"

Also, make use of the ls -al command to list each file in full. It might help identify the problem.

If nothing here helps, post a message and we'll try again.

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

2
  • m also facing the same issue. although the file exist , it keep on showing the error. Even i have tried following the instruction as mentioned above, but i didn't work.
    – sameera
    Jul 22, 2020 at 12:56
  • sameera did you get this problem fixed? im in the same situation. i did these things and i made sure there wasn't a space after c in the file name. im still getting the error code
    – Aamon Van
    Feb 18, 2021 at 1:54

You must log in to answer this question.

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