News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Fatal Error: No file or directory

Started by HazelAkara, August 20, 2020, 10:53:42 AM

Previous topic - Next topic

HazelAkara

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.

Miguel Gimenez

You must tell the compiler where the include is, using the Build options -> Compiler search directories list box or writing (probably):

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

in game.cpp

HazelAkara

Thank you so much. I wish I came here earlier. Would have saved hours of effort rebuild the same program twice.