The Unreal Engine editor didn’t even appear, it fail at the compilation few time after i click on Create Project",
when it arrive to “Compiling the C++ project”, it crash and i have the error message i posted previously and it ask me to “Open with Visual Studio” or “Cancel”,
i’ve used Windows File Explorer and i’ve found the header files i didn’t noticed it was a header file (no .h at the end of the file), in the WFE it’s called PCH.BatteryCollector.h, so i don’t know if this is the problem (i don’t think), but it’s actually in the good directory
How was the Header and CPP files added to the project?
Did you add them by adding a new c++ Class to your project through the Unreal Editor? Or did you manually add them?
If manually, what exact steps did you use?
One of the biggest mistakes people make, when trying to add their own C++ files outside of the editor; is that they create their folder structure for those files using VS.
In that case… What they’re not realizing, is that VS is not actually creating any real folders. What VS displays that looks like folders, and matches your folder structure, are “Filters”. When you create new ones within VS; you’re creating filters, not actual folders.
As a result, finding your header file can be tricky.
One way, would be to use Windows File Explorer (assuming you’re using Windows) and search your project directory for “BatteryCollector.h”. If it’s within your project folder, windows will find it.
If this is an issue caused by the first compilation of an editor-created C++ project (where the user doesn’t have any way to interact with the solution before the first compilation) I believe the issue might have to do with foreign characters in your Windows path.
Create a new project in C:\Development\Unreal Projects\ and see what happens.
It has to do with the special characters in your name. The compiler is probably using ASCII instead of UTF-8, so when it tries to read the accented characters in your name it turns into “Fran??ois Gr??zes” which is a path that does not exist on your computer. Moving the project into a file path that does not include any accented characters will allow the application to parse the path correctly and find the necessary files.