# Precompiled header build errors in Visual C++ 2015 CE update 3

**URL:** <https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297>\
**Category:** Pipeline & Plugins\
**Tags:** build, unreal-engine, unrealbuildtool, git, Visual-Studio, question\
**Created:** [June 28, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297 "2016-06-28T14:27:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_64a6858f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64a6858f1](https://forums.unrealengine.com/u/anonymous_user_64a6858f1)\
**Post date:** [June 28, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/1 "2016-06-28T14:27:38Z")

</div>

It seems something goes wrong during precompiled headers generation. I get errors like:

1\>------ Build started: Project: ShaderCacheTool, Configuration: Development\_Program x64 ------  
1\> Creating makefile for ShaderCacheTool (no existing makefile)  
1\> Performing full C++ include scan (no include cache file)  
1\> Performing 17 actions (4 in parallel)  
1\> PCH.Core.h.cpp  
1\> PCH.CorePrivatePCH.h.cpp  
1\> Module.RenderCore.cpp  
1\> Module.RHI.cpp  
1\> Module.Projects.cpp  
1\> Module.Json.cpp  
1\>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: ‘/DORIGINAL\_FILE\_NAME=“ShaderCacheTool.exe”’ specified on current command line, but was not specified when precompiled header was built  
1\>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: ‘/DRENDERCORE\_API=’ specified on current command line, but was not specified when precompiled header was built  
1\>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: ‘/DRHI\_API=’ specified on current command line, but was not specified when precompiled header was built  
1\>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4599: ‘/IC:\libs\UnrealEngine\Engine\Source\Runtime\RenderCore\Public’: command line argument number 2 does not match precompiled header  
1\>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RHI\Module.RHI.cpp : error C4605: ‘/DORIGINAL\_FILE\_NAME=“ShaderCacheTool.exe”’ specified on current command line, but was not specified when precompiled header was builtC:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\Projects\Module.Projects.cpp: error C4605: ‘/DORIGINAL\_FILE\_NAME=“ShaderCacheTool.exe”’ specified on current command line, but was not specified when precompiled header was built  
1\>  
…

Sources obtained from git.  
Followed the instructions in Readme.md.  
Deleted the intermediates (Engine\Intermediate\Build), cleaned the solution… the problems remain.  
The same thing happens on release, promoted and branches  
(commits 4e83cfda9af6d4012c4052415acb1213c23778bc , 14cc08332d17834979389c3c9a41c9adb6215814 , and 879939a60a234cc7bb795a229aca766e5917deeb respectively).

Visual version:

Microsoft Visual Studio Community 2015  
Version 14.0.25421.03 Update 3  
Microsoft .NET Framework  
Version 4.6.01038

Installed Version: Community

Visual C# 2015 00322-20000-00000-AA357  
Microsoft Visual C# 2015

Visual C++ 2015 00322-20000-00000-AA357  
Microsoft Visual C++ 2015

Any workarounds?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0df12f74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0df12f74](https://forums.unrealengine.com/u/anonymous_user_0df12f74)\
**Post date:** [June 28, 2016, 6:36pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/2 "2016-06-28T18:36:53Z")

</div>

Hi there,

UE4 does not yet support update 3 properly, so that is most likely the reason for the build errors.

You can find more info, and potential workarounds here:

> **[Build Failed with VS 2015 update 3](https://forums.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html)**
>
> It’s because of the following change in VS 2015 RC3: “When using PCH files, mismatched -I include directories to the compiler between -Yc and -Yu compilations will now produce a new warning. C4599” This is getting thrown as an error, even though it...

Thanks,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_abd980be](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_abd980be](https://forums.unrealengine.com/u/anonymous_user_abd980be)\
**Post date:** [June 28, 2016, 6:44pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/3 "2016-06-28T18:44:10Z")

</div>

Anyone know how to revert back to update 2? Can’t do anything while this issue exists…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a78f619](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a78f619](https://forums.unrealengine.com/u/anonymous_user_6a78f619)\
**Post date:** [June 29, 2016, 2:32pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/4 "2016-06-29T14:32:07Z")

</div>

Any solution ? I try [this solution](https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html), but didn’t work for me :/…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 29, 2016, 3:03pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/5 "2016-06-29T15:03:15Z")

</div>

Hey Everyone,

Following the directions in the post by Infected\_Post [here](https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html) allowed me to uninstall/reinstall VS2015 Community without Update 3. It does not appear to include a means of obtaining Update 1 or 2, but you should be able to continue using your code projects.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a78f619](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a78f619](https://forums.unrealengine.com/u/anonymous_user_6a78f619)\
**Post date:** [June 29, 2016, 3:13pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/6 "2016-06-29T15:13:49Z")

</div>

VS2015 is very long to install… Epic games don’t give more news about ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 29, 2016, 3:27pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/7 "2016-06-29T15:27:11Z")

</div>

We do plan to address this compatibility issue as quickly as possible, however for now the best options are to avoid updating to Update 3 if possible or, as mentioned, using the instructions from Infected\_Post to remove Update 3 until a fix for the problem can be put in.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a78f619](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a78f619](https://forums.unrealengine.com/u/anonymous_user_6a78f619)\
**Post date:** [June 29, 2016, 4:05pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/8 "2016-06-29T16:05:39Z")

</div>

Ok, how to stay informed ? I can wait, but if the issues with VS2015 update 3 still here in the end of the week, i prefere now to reinstall VS2015. Thank you for your quick responses.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 29, 2016, 4:25pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/9 "2016-06-29T16:25:28Z")

</div>

The best way to keep up to date on changes to the engine are to review patch/release notes for newer versions as they become available. There is no time frame yet of when a fix for the Update 3 issue will be implemented and I would suggest going ahead and reinstalling for the time being.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a78f619](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a78f619](https://forums.unrealengine.com/u/anonymous_user_6a78f619)\
**Post date:** [June 29, 2016, 4:28pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/10 "2016-06-29T16:28:03Z")

</div>

Then i’ll reinstall VS2015, thanks for the help.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_64a6858f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_64a6858f1](https://forums.unrealengine.com/u/anonymous_user_64a6858f1)\
**Post date:** [June 29, 2016, 4:31pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/11 "2016-06-29T16:31:45Z")

</div>

I found a workaround - basically remove 4599 and 4609 warning to error pragmas in Engine/Source/Runtime/Core/Public/Windows/WindowsPlatformCompilerSetup.h.

Here is a commit you can cherry-pick:  
[https://github.com/Neurochrom/UnrealEngine/commit/89ab7a08af165cad02073261b4b8e7af61a63d2c](https://github.com/Neurochrom/UnrealEngine/commit/89ab7a08af165cad02073261b4b8e7af61a63d2c)

---

<div class="post-metadata">

**Author:** ![m10914](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@m10914](https://forums.unrealengine.com/u/m10914)\
**Post date:** [July 4, 2016, 9:30pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/12 "2016-07-04T21:30:08Z")

</div>

Dude, 4605 not 4609.

---

<div class="post-metadata">

**Author:** ![Mike\_Kelly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mike\_Kelly](https://forums.unrealengine.com/u/Mike_Kelly)\
**Post date:** [July 8, 2016, 3:39am UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/13 "2016-07-08T03:39:12Z")

</div>

4.12.5 fixes this for Windows, but not for XboxOne. The same changes are needed in Engine\Source\Runtime\Core\Public\XboxOne\XboxOneCompilerSetup.h.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4735fe2e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4735fe2e](https://forums.unrealengine.com/u/anonymous_user_4735fe2e)\
**Post date:** [February 23, 2017, 8:14pm UTC](https://forums.unrealengine.com/t/precompiled-header-build-errors-in-visual-c-2015-ce-update-3/362297/14 "2017-02-23T20:14:29Z")

</div>

Nah 404 error
