C++ files not found

Hi, I added a source and header file to my project (default folder) via visual studio in order to create an interface class.

I am getting tons of errors, but I guess some of them just follow after missing references:

  • Other files that try to include my interface-header will give the error “no such file or directory”
  • The interface source file won’t find the “generated” header file

Any help?

Check to see if Visual Studio added the files to your project’s Intermediate folder and if so, move them into the Source folder.

1 Like

Ok, I don’t know why there are two folders for source files and I don’t know why files get placed under intermediate when I created them in the source/project folder inside VS. Anyway, I moved them as you said and used “add existing element” to add them back to the project. But I still get the errors.

Did you try to re-generate the solution (right click on the .uproject → Generate Visual Studio Project files) ?

Ok, thanks for help. I got a little confused, because I was having my other question (about interfaces) in mind. The files are being found now, so thanks for help! The errors were something else, but they are solved now, too.