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

**URL:** <https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138>\
**Category:** Platform & Builds\
**Tags:** header, build, unreal-engine, update, CPP, question\
**Created:** [May 21, 2016, 7:14pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138 "2016-05-21T19:14:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a2c551dd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a2c551dd](https://forums.unrealengine.com/u/anonymous_user_a2c551dd)\
**Post date:** [May 21, 2016, 7:14pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/1 "2016-05-21T19:14:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_23c91a471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_23c91a471](https://forums.unrealengine.com/u/anonymous_user_23c91a471)\
**Post date:** [May 21, 2016, 8:44pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/2 "2016-05-21T20:44:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a2c551dd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a2c551dd](https://forums.unrealengine.com/u/anonymous_user_a2c551dd)\
**Post date:** [May 21, 2016, 8:50pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/3 "2016-05-21T20:50:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_23c91a471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_23c91a471](https://forums.unrealengine.com/u/anonymous_user_23c91a471)\
**Post date:** [May 21, 2016, 8:50pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/4 "2016-05-21T20:50:27Z")

</div>

[https://support.microsoft.com/en-us/kb/126717](https://support.microsoft.com/en-us/kb/126717)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_23c91a471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_23c91a471](https://forums.unrealengine.com/u/anonymous_user_23c91a471)\
**Post date:** [May 21, 2016, 8:52pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/5 "2016-05-21T20:52:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_23c91a471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_23c91a471](https://forums.unrealengine.com/u/anonymous_user_23c91a471)\
**Post date:** [May 21, 2016, 8:56pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/6 "2016-05-21T20:56:30Z")

</div>

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

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [May 21, 2016, 9:33pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/7 "2016-05-21T21:33:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_23c91a471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_23c91a471](https://forums.unrealengine.com/u/anonymous_user_23c91a471)\
**Post date:** [May 22, 2016, 2:19pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/8 "2016-05-22T14:19:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a2c551dd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a2c551dd](https://forums.unrealengine.com/u/anonymous_user_a2c551dd)\
**Post date:** [May 22, 2016, 2:20pm UTC](https://forums.unrealengine.com/t/c-header-files-from-a-previous-version-of-visual-studio/358138/9 "2016-05-22T14:20:40Z")

</div>

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