Here is the logs from when I compile my game in VS:
Error 1 error C1083: Cannot open include file: ‘flex.h’: No such file or directory G:\UnrealEngine-4.8_NVIDIA_Techs\Engine\Source\Runtime\Engine\Public\PhysXIncludes.h 68 1 StairsGameC
Error 2 error C1083: Cannot open include file: ‘flex.h’: No such file or directory G:\UnrealEngine-4.8_NVIDIA_Techs\Engine\Source\Runtime\Engine\Public\PhysXIncludes.h 68 1 StairsGameC
Warning 3 warning C4996: including Slate.h is deprecated. Please include SlateBasics.h and then individual widget headers instead. G:\UnrealEngine-4.8_NVIDIA_Techs\Engine\Source\Runtime\Slate\Public\Slate.h 5 1 StairsGameC
Error 4 error : Failed to produce item: C:\Users\AndersN\Documents\Unreal Projects\StairsGameC 4.7 - Copy 4.8\Plugins\VictoryPlugin\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-VictoryBPLibrary.exp C:\Users\AndersN\Documents\Unreal Projects\StairsGameC 4.7 - Copy 4.8\Intermediate\ProjectFiles\ERROR StairsGameC
Error 5 error MSB3073: The command “G:\UnrealEngine-4.8_NVIDIA_Techs\Engine\Build\BatchFiles\Build.bat StairsGameCEditor Win64 Development “C:\Users\AndersN\Documents\Unreal Projects\StairsGameC 4.7 - Copy 4.8\StairsGameC.uproject”” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38 5 StairsGameC