Creating new project in 4.10.4 and getting errors when comiling c++ source code

Hi,
trying to make blank C++ template and getting this error:

Running C:/Program Files/Epic Games/UE_4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project="C:/Users/felix/Documents/Unreal Projects/MyProject/MyProject.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for MyProjectEditor
  Running UnrealHeaderTool "C:/Users/felix/Documents/Unreal Projects/MyProject/MyProject.uproject" "C:\Users\felix\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
Reflection code generated for MyProjectEditor in 7.2990397 seconds
@progress pop
Performing 7 actions (2 in parallel)
[2/7] Resource PCLaunch.rc
PCH.MyProject.h.cpp
[3/7] Resource ModuleVersionResource.rc.inl
MyProject.generated.cpp
MyProjectGameMode.cpp
C:\Users\felix\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\UE4Editor\Inc\MyProject\MyProject.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
C:\Users\felix\Documents\Unreal Projects\MyProject\Source\MyProject\MyProjectGameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
MyProject.cpp
C:\Users\felix\Documents\Unreal Projects\MyProject\Source\MyProject\MyProject.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\felix\Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll
Total build time: 41.40 seconds

=================================================================

i have the common tools downloaded for visual studio 2015 which i assumed was causing issues but nope still getting this probolem please help me
thanks
Felix

Hello Bobbincat,

From looking at this log, I noticed that this filepath seems different than usual:

/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’

Is your Visual Studio installed on a drive called IC:\ ? If so, is this the same drive your Windows installation is installed on? If not, you may need to reinstall Visual Studio and place it on the same drive as your Windows installation for this to work correctly, as it needs to be able to reference files in system32.

We haven’t heard from you in a while, bobbincat. Are you still experiencing this issue? If so, was my last comment of any help? In the meantime, I’ll be marking this issue as resolved for tracking purposes.

im so sorry i completly forgot to reply, so the probolem seemed to be caused by a bad install of VS15.
So i had reinstalled many times from other replys to other probolems that were similar and this created issues.
What i had to do is download an advanced uninstaller to get rid of everything to do with VS and then install a last time.
Now its fixed :slight_smile: thanks for your help anyways.
sorry again for not replying,
thanks
Felix