# Cannot compile Engine from source with VS2017 if VS2013 is also installed

**URL:** <https://forums.unrealengine.com/t/cannot-compile-engine-from-source-with-vs2017-if-vs2013-is-also-installed/388166>\
**Category:** Pipeline & Plugins\
**Tags:** source-build, unreal-build-tool, engine-compile, unreal-engine, Visual-Studio, question\
**Created:** [March 17, 2017, 2:38am UTC](https://forums.unrealengine.com/t/cannot-compile-engine-from-source-with-vs2017-if-vs2013-is-also-installed/388166 "2017-03-17T02:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkosto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rajkosto](https://forums.unrealengine.com/u/rajkosto)\
**Post date:** [March 17, 2017, 2:38am UTC](https://forums.unrealengine.com/t/cannot-compile-engine-from-source-with-vs2017-if-vs2013-is-also-installed/388166/1 "2017-03-17T02:38:19Z")

</div>

Simple as that. -2017 parameter does not seem to be passed in all cases (generally if i see “Generating makefile” in the output log, it means it has stopped caring for -2017, and will start using v12.0/cl.exe instead of the 14.1 toolkit. So if i regenerate all project files and clean all the stuff, i can get UHT to build if i just build that project, but as soon as i start to build UE4 it will do the generating makefile thing and ignore -2017, using vs2013 cl.exe which means that UHT wont build because of vs2013 not liking the TArray of TUniquePtr in UHT .cpp file.

I would be ok if i could build with either 2017 or 2013, but UE4 does not want to cooperate, also where is the post formally announcing deprecation of vs2013 ? Because i cant find it anywhere

---

<div class="post-metadata">

**Author:** ![rajkosto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rajkosto](https://forums.unrealengine.com/u/rajkosto)\
**Post date:** [March 18, 2017, 5:20pm UTC](https://forums.unrealengine.com/t/cannot-compile-engine-from-source-with-vs2017-if-vs2013-is-also-installed/388166/2 "2017-03-18T17:20:18Z")

</div>

A workaround to get it compiling NOW is to change the order in UEBuildWindows.cs function GetDefaultCompiler after the comment // Second, default based on what’s installed, test for 2015 first

of course, for proper usage, it REALLY SHOULD pass the -2017 flag properly to the makefile generator or whatever is ignoring it right now and just using the default order.
