+ 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 :'( )
5 Answers
+ 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
+ 5
try reviewing this
https://www.sololearn.com/learn/CPlusPlus/1955/
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.
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.
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.