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