Whenever I try to rebuild a project, visual studio gives me the following errors:
1>------ Rebuild All started: Project: Tactical, Configuration: Development_Editor x64 ------
1> Cleaning TacticalEditor Binaries...
1> Creating makefile for TacticalEditor (no existing makefile)
1> Performing full C++ include scan (no include cache file)
1> Parsing headers for TacticalEditor
1> Running UnrealHeaderTool "C:\Users\Gray\Documents\Unreal Projects\Tactical\Tactical.uproject" "C:\Users\Gray\Documents\Unreal Projects\Tactical\Intermediate\Build\Win64\TacticalEditor\Development\TacticalEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
1> Reflection code generated for TacticalEditor in 2.6436043 seconds
1> Performing 7 actions (4 in parallel)
1> [2/7] Resource PCLaunch.rc
1> [3/7] Resource ModuleVersionResource.rc.inl
1> PCH.Tactical.h.cpp
1> GridGame.cpp
1> Tactical.cpp
1> Tactical.generated.cpp
1>C:\Users\Gray\Documents\Unreal Projects\Tactical\Source\Tactical\Tactical.cpp : error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled headerC:\Users\Gray\Documents\Unreal Projects\Tactical\Intermediate\Build\Win64\UE4Editor\Inc\Tactical\Tactical.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled headerC:\Users\Gray\Documents\Unreal Projects\Tactical\Source\Tactical\GridGame.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 261 does not match precompiled header
1>
1>
1>ERROR : UBT error : Failed to produce item: C:\Users\Gray\Documents\Unreal Projects\Tactical\Binaries\Win64\UE4Editor-Tactical.dll
1> Total build time: 45.39 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command ""C:\Program Files (x86)\Epic Games\4.12\Engine\Build\BatchFiles\Rebuild.bat" TacticalEditor Win64 Development "C:\Users\Gray\Documents\Unreal Projects\Tactical\Tactical.uproject" -waitmutex" exited with code -1.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
It does build when i do “clean”, but changes are not present in-game.
I also tried to create a new project, and made a new gametype class from the editor.
But the same errors occur with a clean project.
Any ideas?