1

I am getting this results in the terminal.

gcc.exe: error in visual studio code.

How to fix this?

I was working well until now, don't know what happened.

enter image description here

0

1 Answer 1

2

If you want to add spaces to the name of your C/C++ files, you will then need to let the compiler know that this is a single file, this can be achived by using quotation marks around the file name:

gcc "If condition.c"

That said, it's not the best idea to have C/C++ files with spaces, you shouldn't do it.

Suggestion: rename If condition.c as If-condition.c or If_condition.c

Sign up to request clarification or add additional context in comments.

1 Comment

But using spaces or tabs inside C source code file names is a disgusting and shameful habit (hostile to glob(7) on Linux and POSIX systems)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.