Crash whenever i start new C++ project

Whenever i try to start a new C++ project or try to add a C++ script to a blueprint project i get an error and a crash. i have installed the newest versions of visual studio and unreal engine. i have not checked if all the errors are the same but this is the one im getting now. thank you


The project could not be compiled. Would you like to open it in Visual Studio?

Running D:/Unreal 4/Unreal engine/UE_4.18/Engine/Binaries/DotNET/UnrealBuildTool.exe Coder Development Win64 -project="D:/Game-Dev/Unreal Projects/Coder/Coder.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for Coder (no existing makefile)
@progress push 5%
Parsing headers for CoderEditor
  Running UnrealHeaderTool "D:\Game-Dev\Unreal Projects\Coder\Coder.uproject" "D:\Game-Dev\Unreal Projects\Coder\Intermediate\Build\Win64\CoderEditor\Development\CoderEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for CoderEditor in 10.8100194 seconds
@progress pop
Performing 9 actions (4 in parallel)
[2/9] Resource ModuleVersionResource.rc.inl
[3/9] Resource PCLaunch.rc
ERROR: Failed to start local process for action: C:\Program Files (x86)\Windows Kits\8.1\bin\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I "D:\Unreal 4\Unreal engine\UE_4.18\Engine\Source" /DIS_PROGRAM=0 /DUE_EDITOR=1 /DWITH_DEV_AUTOMATION_TESTS=1 /DWITH_PERF_AUTOMATION_TESTS=1 /DUNICODE /D_UNICODE /D__UNREAL__ /DIS_MONOLITHIC=0 /DWITH_ENGINE=1 /DWITH_UNREAL_DEVELOPER_TOOLS=1 /DWITH_COREUOBJECT=1 /DUSE_STATS_WITHOUT_ENGINE=0 /DWITH_PLUGIN_SUPPORT=0 /DWITH_PERFCOUNTERS=1 /DUSE_LOGGING_IN_SHIPPING=0 /DWITH_LOGGING_TO_MEMORY=0 /DUSE_CACHE_FREED_OS_ALLOCS=1 /DUSE_CHECKS_IN_SHIPPING=0 /DUE_BUILD_MINIMAL=0 /DWITH_EDITOR=1 /DWITH_SERVER_CODE=1 /DWITH_CEF3=1 /DWITH_XGE_CONTROLLER=1 /DUBT_COMPILED_PLATFORM=Win64 /DUBT_COMPILED_TARGET=Editor /DWIN32=1 /D_WIN32_WINNT=0x0601 /DWINVER=0x0601 /DPLATFORM_WINDOWS=1 /DDEPTH_32_BIT_CONVERSION=0 /DNDEBUG=1 /DUE_BUILD_DEVELOPMENT=1 /DORIGINAL_FILE_NAME="UE4Editor-Coder.dll" /fo "D:\Unreal 4\Unreal engine\UE_4.18\Engine\Intermediate\Build\Win64\UE4Editor\Development\Coder\PCLaunch.rc.res"  "D:\Unreal 4\Unreal engine\UE_4.18\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc"
ERROR: Failed to start local process for action: C:\Program Files (x86)\Windows Kits\8.1\bin\x64\rc.exe /nologo /D_WIN64 /l 0x409 /I "D:\Unreal 4\Unreal engine\UE_4.18\Engine\Source" /DIS_PROGRAM=0 /DUE_EDITOR=1 /DWITH_DEV_AUTOMATION_TESTS=1 /DWITH_PERF_AUTOMATION_TESTS=1 /DUNICODE /D_UNICODE /D__UNREAL__ /DIS_MONOLITHIC=0 /DWITH_ENGINE=1 /DWITH_UNREAL_DEVELOPER_TOOLS=1 /DWITH_COREUOBJECT=1 /DUSE_STATS_WITHOUT_ENGINE=0 /DWITH_PLUGIN_SUPPORT=0 /DWITH_PERFCOUNTERS=1 /DUSE_LOGGING_IN_SHIPPING=0 /DWITH_LOGGING_TO_MEMORY=0 /DUSE_CACHE_FREED_OS_ALLOCS=1 /DUSE_CHECKS_IN_SHIPPING=0 /DUE_BUILD_MINIMAL=0 /DWITH_EDITOR=1 /DWITH_SERVER_CODE=1 /DWITH_CEF3=1 /DWITH_XGE_CONTROLLER=1 /DUBT_COMPILED_PLATFORM=Win64 /DUBT_COMPILED_TARGET=Editor /DWIN32=1 /D_WIN32_WINNT=0x0601 /DWINVER=0x0601 /DPLATFORM_WINDOWS=1 /DDEPTH_32_BIT_CONVERSION=0 /DNDEBUG=1 /DUE_BUILD_DEVELOPMENT=1 /fo "D:\Unreal 4\Unreal engine\UE_4.18\Engine\Intermediate\Build\Win64\UE4Editor\Development\ModuleVersionResource.rc.inl.res"  "D:\Unreal 4\Unreal engine\UE_4.18\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl"
ERROR: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
          at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
          at UnrealBuildTool.ActionThread.ThreadFunc()
ERROR: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
          at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
          at UnrealBuildTool.ActionThread.ThreadFunc()
SharedPCH.Engine.cpp
d:\unreal 4\unreal engine\ue_4.18\engine\source\runtime\core\public\windows\WindowsSystemIncludes.h(27): fatal error C1083: Cannot open include file: 'intsafe.h': No such file or directory
ERROR: UBT ERROR: Failed to produce item: D:\Game-Dev\Unreal Projects\Coder\Binaries\Win64\UE4Editor-Coder.dll
Total build time: 19.17 seconds (Local executor: 0.00 seconds)

Hello Laviticus,

I have a few questions in mind in order to better diagnose your issue:

  • What version of Visual Studio are you using to build and compile your project in?
  • What packages do you have installed on your Visual Studio instance?
  • Did you build the engine using a source build or did you build the binary version in the Launcher?

Im pretty new at this so ill try to answer to the best of my abilities thank you.

Im using visual studio 2017 community edition
Version 15.5.3
with these installed packages:

Desktop development with C++,
Python development ,
Game development with C++ ,

im not exactly sure how to answer the third question but im trying to create a new C++ basic code project from the unreal launcher i can successfully bring the file over to visual studio but when i try to build in visual studio i get similar errors. hope that info helps

i just tried creating another C++ basic code project and got this error


The project could not be compiled. Would you like to open it in Visual Studio?

Running D:/Unreal 4/Unreal engine/UE_4.18/Engine/Binaries/DotNET/UnrealBuildTool.exe test Development Win64 -project=“D:/Game-Dev/Unreal Projects/test/test.uproject” -editorrecompile -progress -NoHotReloadFromIDE
ERROR: Multiple configurations specified on command line (first Test, then Development)


What is the result when you open it in Visual Studio?