C++ header files from a previous version of visual studio?

So, after updating my Visual Studio, my C++ code will no longer compile. Here’s the error message:

C:\Users\\Documents\Mistwrought\MistwroughtGame\Source\Mistwrought\HeroController.cpp : fatal error C1853: 'C:\Users\\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Development\Mistwrought\Mistwrought.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)
1>C:\Users\\Documents\Mistwrought\MistwroughtGame\Source\Mistwrought\SpawnManager.cpp : fatal error C1853: 'C:\Users\\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Development\Mistwrought\Mistwrought.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)
1>C:\Users\\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Inc\Mistwrought\Mistwrought.generated.cpp : fatal error C1853: 'C:\Users\\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Development\Mistwrought\Mistwrought.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)
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: C:\Users\\Documents\Mistwrought\MistwroughtGame\Binaries\Win64\UE4Editor-Mistwrought.dll
1>  Total build time: 9.86 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ""C:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" MistwroughtEditor Win64 Development "C:\Users\\Documents\Mistwrought\MistwroughtGame\Mistwrought.uproject" -rocket -waitmutex" exited with code -1.

I’m not using and C files as far as I know, so I don’t think the issue lies there. Though, considering I did just update visual studio, I’ll make the assumption that the error has to do with my headers being form a previous version of the compiler. I’m not really sure how to fix it though. I’ve tried rebuilding (won’t rebuild), I’ve tried deleting the binaries folder and remaking those (another answer from somebody else’s question suggested it might help, though it didn’t for me). I’m sure there’s some way to do this, but I just don’t know what that way might be. Thanks in advance for any insight you guys can provide

I’m using visual studio community 2015, and I’ve got it updated to Update 2 (which I believe is the most recent version)

You’ll need to clean before building after upgrading Visual Studio. Right click on your solution and choose “Clean” and then build as normal.

If that still doesn’t work, delete your projects Intermediate/Build folder, re-generate project files for it, and try again.

1 Like

it is not the header it is a pre-compiled header what vs version you where using and what is the updated version

https://support.microsoft.com/en-us/kb/126717

error C1853:

Btw instead of output window read error window on the left side in error window you have code error for exaample error C1853: click on it and it will take you to the website with explanation you can also copy and paste to google

BTW. have you tried to regenerate the visual studio files ??

Do as @ said clean build your project go to your project in visual studio and at the top under Build category click on “Clean Solution” I forgot about this little friend

Thanks, deleting the Build folder actually did the trick. That said, thanks Mlody for the help also