# Blank C++ project won't build (4.12.3)

**URL:** <https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, build-failed, UE4, CPP, question\
**Created:** [June 28, 2016, 7:25am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257 "2016-06-28T07:25:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jSlavens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jSlavens](https://forums.unrealengine.com/u/jSlavens)\
**Post date:** [June 28, 2016, 7:25am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/1 "2016-06-28T07:25:53Z")

</div>

I create a new project and when making it I received a notice that the project was unable to produce the .dll. I elected to open the C++ project in visual studio following prompts. When attempting to simply rebuild the solution I recieved these errors

Error C4599 ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header UniversalInventory D:\Unreal Projects\universalInventory\UniversalInventory\Intermediate\Build\Win64\UE4Editor\Inc\UniversalInventory\UniversalInventory.generated.cpp 1

Error C4599 ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header UniversalInventory D:\Unreal Projects\universalInventory\UniversalInventory\Source\UniversalInventory\UniversalInventoryGameMode.cpp 1

Error C4599 ‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 261 does not match precompiled header UniversalInventory D:\Unreal Projects\universalInventory\UniversalInventory\Source\UniversalInventory\UniversalInventory.cpp 1

Error Failed to produce item: D:\Unreal Projects\universalInventory\UniversalInventory\Binaries\Win64\UE4Editor-UniversalInventory-396.dll UniversalInventory D:\Unreal Projects\universalInventory\UniversalInventory\Intermediate\ProjectFiles\ERROR 1

Error MSB3073 The command ““D:\Epic Games\4.12\Engine\Build\BatchFiles\Rebuild.bat” UniversalInventoryEditor Win64 Development “D:\Unreal Projects\universalInventory\UniversalInventory\UniversalInventory.uproject” -waitmutex” exited with code -1. UniversalInventory C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 46

After searching here I am not quite finding anything related.

---

<div class="post-metadata">

**Author:** ![Tasty\_Snak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tasty_snak/32/550507_2.png) [@Tasty\_Snak](https://forums.unrealengine.com/u/Tasty_Snak)\
**Post date:** [June 28, 2016, 7:53am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/2 "2016-06-28T07:53:32Z")

</div>

Have you tried rebuilding your project?

[edit: This may or may not work depending on ones particular situation. All the files and folders deleted in step 1 will be regenerated anew, so if one of them had been corrupted for whatever reason and is causing a problem this is a quick way of making everything clean again. This probably should be the first thing you try before anything else.  
Also, it’s wise to use some form of version control (like git for instance), that way in the worst case scenario you can always revert back to your previous working build.]

1. Go to your folder and delete the .vs folder, Binaries folder, Build folder, Intermediate folder, Saved folder, the .sln file and .db file.
2. Double-Click on your .uproject file and click ‘Yes’ to rebuilding the missing modules.
3. Once the engine is open and all the stuff has been rebuilt, Right-Click your .uproject file and select ‘Generate Visual Studio project files’.
4. Double-Click your .sln file to open Visual Studio which will then rebuild itself.

---

<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 28, 2016, 9:31am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/3 "2016-06-28T09:31:02Z")

</div>

You can get more information with this post : [Unreal Error "This project could not be compiled. Would you like to open it in Visual Studio?" - C++ - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?115374-Unreal-Error-quot-This-project-could-not-be-compiled-Would-you-like-to-open-it-in-Visual-Studio-quot)

---

<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 28, 2016, 9:33am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/4 "2016-06-28T09:33:08Z")

</div>

Hi, I tried this, but that broke my project 😕 He can’t rebuild… I hope my project isn’t definitely break 😕

---

<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 28, 2016, 10:45am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/5 "2016-06-28T10:45:53Z")

</div>

I found the solution ! Read the post of [here](https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html) ([Build Failed with VS 2015 update 3 - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html))

post :

> Hi everyone,
> 
> I just wanted to pop in here real quick to let you know that we do not yet officially support Update 3 for Visual \>Studio. Our goal is to have support for new VS updates by the time they are officially released (Release Candidate \>versions are not official final release versions). Sometimes we are able to get that support into the Engine early, but \>as of right now it is not in place.
> 
> I brought this up with the individual who will be responsible for making sure support for Update 3 is added to the \>Engine. He has not done any testing on this yet, but he believes it should be possible to correct this issue by \>opening the WindowsPlatformCompilerSetup.h file in source code (this won’t correct it for the binary version of the \>Engine, unfortunately), and remove 4599 from the table of warnings at the top. Then add #pragma warning(disable : \>4599) below the list. It is possible that this may not work since the warning is coming from command line arguments \>instead of source, but it’s the first thing he is going to try when he starts working on support for Update 3. He also \>said that he does not believe this edit will have any adverse affect on your game code generation, but stressed \>again that he has not done any testing yet.
> 
> For now we recommend sticking with Visual Studio 2015 Update 2.

This worked for me, i hope for you too.

---

<div class="post-metadata">

**Author:** ![VTalyh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vtalyh/32/469482_2.png) [@VTalyh](https://forums.unrealengine.com/u/VTalyh)\
**Post date:** [June 28, 2016, 11:19am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/6 "2016-06-28T11:19:26Z")

</div>

After unsuccessful attempts to use #pragma went to reinstall Visual Studio ☹

---

<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 28, 2016, 11:26am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/7 "2016-06-28T11:26:25Z")

</div>

This will not resolve the problem, the new VS2015 update 3 has issues with UE4. But you can try, if the method doesn’t work for you.

---

<div class="post-metadata">

**Author:** ![LCWilliams](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LCWilliams](https://forums.unrealengine.com/u/LCWilliams)\
**Post date:** [June 28, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/8 "2016-06-28T18:16:57Z")

</div>

And irritatingly it would appear that one can’t download any previous versions either. I discovered that the hard way. Looks like no C++ projects from me until this is fixed. 😕

---

<div class="post-metadata">

**Author:** ![jSlavens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jSlavens](https://forums.unrealengine.com/u/jSlavens)\
**Post date:** [June 28, 2016, 6:48pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/9 "2016-06-28T18:48:27Z")

</div>

I am marking this as the solution only because it worked for me. I realize it may not be a solution for everyone.

Some useful information for my setup:  
Development Platform: Windows 7  
Engine Version: 4.12.3  
VS: Community 2015

---

<div class="post-metadata">

**Author:** ![NCEdElliott](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NCEdElliott](https://forums.unrealengine.com/u/NCEdElliott)\
**Post date:** [June 28, 2016, 7:20pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/10 "2016-06-28T19:20:21Z")

</div>

Make sure that you setup the disable as “#pragma warning(disable : 4599)” without the \> symbol as stated above or you’ll have problems.

---

<div class="post-metadata">

**Author:** ![jSlavens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jSlavens](https://forums.unrealengine.com/u/jSlavens)\
**Post date:** [June 28, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/11 "2016-06-28T19:42:14Z")

</div>

thankfully I checked the original post.

---

<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 28, 2016, 9:01pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/12 "2016-06-28T21:01:25Z")

</div>

Yes sorry, check the original post is better !

---

<div class="post-metadata">

**Author:** ![Tasty\_Snak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tasty_snak/32/550507_2.png) [@Tasty\_Snak](https://forums.unrealengine.com/u/Tasty_Snak)\
**Post date:** [June 28, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/13 "2016-06-28T21:32:40Z")

</div>

I keep my projects on Github and sometimes have to revert to previous builds or rebuild broken projects. This is step by step what I was shown to do and it works for me.  
There is nothing that I mentioned to delete that you can’t get back by following the steps I mentioned. If your project is broken it’s not because of doing the things in the above post.

---

<div class="post-metadata">

**Author:** ![Ghoxt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghoxt](https://forums.unrealengine.com/u/Ghoxt)\
**Post date:** [June 29, 2016, 2:38am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/14 "2016-06-29T02:38:57Z")

</div>

You can down load previous versions. I just today 06/28 downloaded VS2013. On the download page there’s a link on the left menu for it. [Download Visual Studio Tools - Install Free for Windows, Mac, Linux](https://www.visualstudio.com/downloads/download-visual-studio-vs)

---

<div class="post-metadata">

**Author:** ![jSlavens](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jSlavens](https://forums.unrealengine.com/u/jSlavens)\
**Post date:** [June 29, 2016, 2:41am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/15 "2016-06-29T02:41:02Z")

</div>

Unreal is now only compatible with VS 2015. As of very 4.11 I believe.

---

<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, 8:15am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/16 "2016-06-29T08:15:23Z")

</div>

The problem was (again) VS2015 update 3, i resolved it and the project build without issues. I knew there was no chance that it broke my project, I often do your manipulation to remove a C ++ class, but with the problem of VS2015 u3, I thought I would never be able to rebuild my project normally ^^

---

<div class="post-metadata">

**Author:** ![Tasty\_Snak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tasty_snak/32/550507_2.png) [@Tasty\_Snak](https://forums.unrealengine.com/u/Tasty_Snak)\
**Post date:** [June 29, 2016, 9:30am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/17 "2016-06-29T09:30:26Z")

</div>

I thought you might have down voted my comment. Down voting just because it didn’t bear fruit in your particular case isn’t a good way of encouraging people to help.

---

<div class="post-metadata">

**Author:** ![kska](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kska](https://forums.unrealengine.com/u/kska)\
**Post date:** [June 30, 2016, 1:42pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/18 "2016-06-30T13:42:29Z")

</div>

Thanks man, omg, i can’t believe that worked. YOU SAVED MY ■■■ \<3

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bb09cd3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bb09cd3d](https://forums.unrealengine.com/u/anonymous_user_bb09cd3d)\
**Post date:** [July 6, 2016, 3:26am UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/19 "2016-07-06T03:26:32Z")

</div>

Worked for me also. Thank you for the re-post.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9c027876](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9c027876](https://forums.unrealengine.com/u/anonymous_user_9c027876)\
**Post date:** [July 7, 2016, 1:37pm UTC](https://forums.unrealengine.com/t/blank-c-project-wont-build-4-12-3/362257/20 "2016-07-07T13:37:29Z")

</div>

When will this be up and running?
