# Unable to compile project - "missing cl.exe"

**URL:** <https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960>\
**Category:** Pipeline & Plugins\
**Tags:** visual-c-platform-to, unreal-engine, compile, Visual-Studio, CPP, question\
**Created:** [September 19, 2017, 11:09am UTC](https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960 "2017-09-19T11:09:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlucki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vlucki](https://forums.unrealengine.com/u/vlucki)\
**Post date:** [September 19, 2017, 11:09am UTC](https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960/1 "2017-09-19T11:09:33Z")

</div>

So, I’ve been trying to create a C++ project for a couple hours now, but all my attempts have ended up in failure, with the following error message:

> Running C:/Program Files/Epic  
> Games/UE\_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe  
> MyProject Development Win64  
> -project=“D:/Projects/UE4/MyProject/MyProject.uproject”  
> -editorrecompile -progress -NoHotReloadFromIDE  
> Creating makefile for MyProject (no existing makefile)  
> Performing full C++ include scan (no include cache file)  
> @progress push 5%  
> Parsing headers for MyProjectEditor  
> Running UnrealHeaderTool “D:\Projects\UE4\MyProject\MyProject.uproject”  
> “D:\Projects\UE4\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest”  
> -LogCmds=“loginit warning, logexit warning, logdatabase error”  
> -Unattended -WarningsAsErrors -installed  
> Reflection code generated for MyProjectEditor in 8.3963873 seconds  
> @progress pop  
> ERROR: No 32-bit compiler toolchain found in C:\Program Files  
> (x86)\Microsoft Visual Studio  
> 14.0\VC\bin\cl.exe

The same error happens when adding C++ code to a Bluepritn project.

* * *

Some info that should be relevant:

- I am using Visual Studio Community 2017;
- I have tried installing unreal by itself and through the Visual Studio  
Installer;
- I have checked basically all C++ related items in the installer;
- I have downloaded and installed the C++ build tools for visual studio  
2015, as suggested in some answers;
- I have uninstalled, re-downloaded and re-installed both Visual Studio and Unreal, at least three times
- I DO have cl.exe in my machine, just not in the path Unreal seems to want it. Instead of being directly in the “bin” folder, it is inside a folder named “amd64”, which is inside “bin”. I tried simply coping the contents from “amd64” to “bin”, which resulted in another error:

> Running C:/Program Files/Epic  
> Games/UE\_4.17/Engine/Binaries/DotNET/UnrealBuildTool.exe  
> MyProject Development Win64  
> -project=“D:/Projects/UE4/MyProject/MyProject.uproject”  
> -editorrecompile -progress -NoHotReloadFromIDE  
> Creating makefile for MyProject (no existing makefile)  
> Performing full C++ include scan (no include cache file)  
> @progress push 5%  
> Parsing headers for MyProjectEditor  
> Running UnrealHeaderTool “D:\Projects\UE4\MyProject\MyProject.uproject”  
> “D:\Projects\UE4\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest”  
> -LogCmds=“loginit warning, logexit warning, logdatabase error”  
> -Unattended -WarningsAsErrors -installed  
> Reflection code generated for MyProjectEditor in 8.1166803 seconds  
> @progress pop  
> Performing 9 actions (4 in parallel)  
> [2/9] Resource ModuleVersionResource.rc.inl  
> [3/9] Resource PCLaunch.rc  
> SharedPCH.Engine.cpp  
> C:\Program Files\Epic Games\UE\_4.17\Engine\Source\Runtime\Core\Public\HAL/PlatformCrt.h(5):  
> fatal error C1083: Cannot open include  
> file: ‘new’: No such file or directory  
> ERROR: UBT ERROR: Failed to produce item:  
> D:\Projects\UE4\MyProject\Binaries\Win64\UE4Editor-MyProject.dll  
> Total build time: 17.57 seconds (Local executor: 0.00 seconds)

Some research hinted at this error being the result of something missing regarding .net, so I also tried installing everything related to it without any success.

* * *

All that said… anyone has any suggestions?

---

<div class="post-metadata">

**Author:** ![feiwu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@feiwu](https://forums.unrealengine.com/u/feiwu)\
**Post date:** [September 19, 2017, 12:02pm UTC](https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960/2 "2017-09-19T12:02:49Z")

</div>

Did you have tried create an hello world c++ project with visual studio and build success?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0ec4c484](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0ec4c484](https://forums.unrealengine.com/u/anonymous_user_0ec4c484)\
**Post date:** [September 19, 2017, 2:54pm UTC](https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960/3 "2017-09-19T14:54:23Z")

</div>

Is this a project from another computer?  
If yes, you can try this:  
Right click the .uproject file and choose “Generate Visual Studio project files”.  
You can also try “Switch Unreal Engine version” and choose 4.17, even if your project is 4.17. It seems to adjust Unreal files path when your project came from another computer.

---

<div class="post-metadata">

**Author:** ![vlucki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vlucki](https://forums.unrealengine.com/u/vlucki)\
**Post date:** [September 20, 2017, 12:59am UTC](https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960/4 "2017-09-20T00:59:46Z")

</div>

Yes, I am able to create, build and run a simple C++ console project

---

<div class="post-metadata">

**Author:** ![vlucki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vlucki](https://forums.unrealengine.com/u/vlucki)\
**Post date:** [September 20, 2017, 1:01am UTC](https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960/5 "2017-09-20T01:01:50Z")

</div>

No, I’ve been trying to create a new project again and again on the same computer. Asking unreal to generate the project files or switch versions did not do anything beyond displaying a little progress bar which fills up and then disappears…

---

<div class="post-metadata">

**Author:** ![vlucki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vlucki](https://forums.unrealengine.com/u/vlucki)\
**Post date:** [September 26, 2017, 6:23pm UTC](https://forums.unrealengine.com/t/unable-to-compile-project-missing-cl-exe/404960/6 "2017-09-26T18:23:05Z")

</div>

Well, I was finally able to make it work… by resetting Windows. Yup, made it remove all programs and leave my files.

Once that was done, I downloaded Visual Studio Community 2017 and, through it, Unreal.

Now it compiles C++ projects just fine. I haven’t played around with it too much yet, but at least this particular problem was fixed.
