+ 4

What does 'No such file or directory' mean and how to fix it? (CodeBlocks error message)

I got this error message on CodeBlocks while working with a class in a separate file saying 'No such file or directory'. I could not find where it was coming from. What does it mean and how to fix it? (No code available :'( )

25th Mar 2018, 5:35 PM
Damien Thomas
Damien Thomas - avatar
5 odpowiedzi
+ 6
How many .cpp .h files did you use "#pragma once" at line 1 for each file - had that issue with my perfect world code 21 .cpp 21 .h files - multiple includes of the same file
26th Mar 2018, 2:24 AM
Manual
Manual - avatar
25th Mar 2018, 5:42 PM
Manual
Manual - avatar
0
Manual, I have already done that witch lead me to the error. After I created the a 2 functions and hit build and run I got the error.
25th Mar 2018, 5:44 PM
Damien Thomas
Damien Thomas - avatar
0
Sometimes its a problem with code blocks compiler itself. one or more of these solutions might work When working with files its best to use a project instead of an empty source file Work with projects make sure the files are in the project folder Restart code blocks and activate just the project you want to work with Restart code blocks If those don't work then just check ur code again might be a small error hiding somewhere.
4th Apr 2018, 9:13 AM
shashuri Magrease
shashuri Magrease - avatar
0
I solved the problem !!! To avoid such an error, the first thing after creating a new project in Code Blocks you need to compile the program "Hello World!", which is written by default in each new project. The fact is that if this is not done, it will not exist .exe file in Debug and Release folders.
17th Jul 2022, 11:13 AM
Кавун 🍉
Кавун 🍉 - avatar