I am able to switch engine version and generate project files successfully . Both files are in different locations , to begin with :
QUBEHUD.cpp is in Source\QUBE\Private\Engine
and
SQUBEPauseMenu.cpp is in Source\QUBE\Private\UI
If I recompile I get the following error messages.
Error 1 error C1083: Cannot open include file: ‘SQUBEPauseMenu.h’: No such file or directory C:\Users\Documents\Unreal Projects\QUBE_Rocket_Development\Source\QUBE\Private\Engine\QUBEHUD.cpp 7 1 QUBE
Error 2 error : Failed to produce item: C:\Users\Documents\Unreal Projects\QUBE_Rocket_Development\Binaries\Win64\UE4Editor-QUBE.dll C:\Users\Documents\Unreal Projects\QUBE_Rocket_Development\Intermediate\ProjectFiles\ERROR QUBE
Error 3 error MSB3073: The command ““C:\Program Files\Unreal Engine4\4.4\Engine\Build\BatchFiles\Rebuild.bat” QUBEEditor Win64 Development “C:\Users\Documents\Unreal Projects\QUBE_Rocket_Development\QUBE.uproject” -rocket” exited with code 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 43 5 QUBE
I get the same error if I move SQUBEPauseMenu.cpp to Source\QUBE\Private\Engine
The same happens If I move QUBEHUD.cpp to Source\QUBE\Private\UI
I have attached an image of where each file is by default . I have tried moving files between each folders , but have not yet been able to successfully build the project .