Author Topic: Fatal Error: No file or directory  (Read 267 times)

Offline HazelAkara

  • Single posting newcomer
  • *
  • Posts: 3
Fatal Error: No file or directory
« 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.

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 524
Re: Fatal Error: No file or directory
« Reply #1 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: [Select]
#include "../include/Game.h"
in game.cpp

Offline HazelAkara

  • Single posting newcomer
  • *
  • Posts: 3
Re: Fatal Error: No file or directory
« Reply #2 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.