i have c++ project when i tried to build it i got this errors:
Severity Code Description Project File Line Suppression State
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Uncalibrated.c 1
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Tracking.c 1
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Raw.c 1
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Range.c 1
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Orientation.c 1
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Quaternion.c 1
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Calibration.c 1
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Direction.c 1
Error C2664 ‘void TBaseDynamicMulticastDelegate<FWeakObjectPtr,void,UPrimitiveComponent *,AActor *,UPrimitiveComponent *,FVector,const FHitResult &>::__Internal_AddDynamic(UserClass ,void (__cdecl Aproject06Projectile:: )(UPrimitiveComponent *,AActor *,UPrimitiveComponent ,FVector,const FHitResult &),FName)': cannot convert argument 2 from 'void (__cdecl Aproject06Projectile:: )(AActor *,UPrimitiveComponent ,FVector,const FHitResult &)’ to 'void (__cdecl Aproject06Projectile:: )(UPrimitiveComponent *,AActor *,UPrimitiveComponent *,FVector,const FHitResult &)’ project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\project06Projectile.cpp 13
Error C1083 Cannot open include file: ‘android/native_window.h’: No such file or directory project06 c:\program files (x86)\epic games\4.12\engine\source\runtime\core\public\android\AndroidWindow.h 6
Error C1853 ‘C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\Build\Win64\UE4Editor\Development\project06\project06.h.pch’ precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa) project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Source\project06\Calibrated.c 1
Error Failed to produce item: C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Binaries\Win64\UE4Editor-project06-8751.dll project06 C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command ““C:\Program Files (x86)\Epic Games\4.12\Engine\Build\BatchFiles\Build.bat” project06Editor Win64 Development “C:\Users\nadhem\Documents\Unreal Projects\project06 4.12\project06.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. project06 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 41
I neeed help !
The compiler clearly says what is his problem:
precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa).
It means that the header files automaticaly generated by the engine are outdated and cannot be used to compile your game.
You will have to regenerate them. In visual studio right click on your solution and choose Clean Solution. This will remove the auto generated header files and they will be correctly generated again in the next build process. Then build it and it should be working.
1 Like
i did it but same errors !!
if anyone else is having the same issue, make sure you close the UE Editor, otherwise VS won’t allow cleaning and rebuilding the project