Code::Blocks Forums

User forums => Help => Topic started by: HazelAkara on August 20, 2020, 10:53:42 am

Title: Fatal Error: No file or directory
Post by: HazelAkara on August 20, 2020, 10:53:42 am
I made this program, it was working file there was no, no file, error. I close the program, saved it, and  when I open it again. The only file there was, main.Cpp, so I added game.cpp and game.h from the same folder where I have saved this program.
How can I solve this problem? This keeps happening.
Title: Re: Fatal Error: No file or directory
Post by: Miguel Gimenez on August 20, 2020, 12:17:38 pm
You must tell the compiler where the include is, using the Build options -> Compiler search directories list box or writing (probably):

Code
#include "../include/Game.h"

in game.cpp
Title: Re: Fatal Error: No file or directory
Post by: HazelAkara on August 20, 2020, 02:27:03 pm
Thank you so much. I wish I came here earlier. Would have saved hours of effort rebuild the same program twice.