4.19 and GameLiftServerSDK

Looking for any assistance on this. Trying to integrate the GameLiftServerSDK into 4.19 After quite a bit of trial and error and fixing other issues ive gotten stuck at this point.

The Development Editor compiles fine, no errors. But when trying to build DevelopmentServer I get this.

SNMOnlineGameMode.cpp
2>E:\Source\UnrealEngineSNM\Engine\Source\Runtime\Core\Public\Core.h(6): warning : Monolithic headers should not be used by this module. Please change it to explicitly include the headers it needs.
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\INCLUDE\pplinterface.h(142): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\INCLUDE\pplinterface.h(150): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\INCLUDE\pplinterface.h(181): error C4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: E:\Source\UnrealEngineSNM\Engine\Plugins\GameLiftServerSDK\Binaries\Win64\SwordsNMagicAndStuff-GameLiftServerSDK.lib
2>Total build time: 7.84 seconds (Local executor: 0.00 seconds)
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "E:\Source\UnrealEngineSNM\Engine\Build\BatchFiles\Build.bat SwordsNMagicAndStuff Win64 Development "E:\P4\SwordsNMagicDepot\Main\SwordsNMagicAndStuff.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "SwordsNMagicAndStuff.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

check this!

In 4.19.2 the previous ways of handling this issue won’t work if you build in shipping mode while using Visual Studios 17.

In order to fix this, you must add a line to Engine/Source/Programs/UnrealBuildTool/Platform/Windows/VCToolChain.cs inside the function AppendCLArguments_Global:

        Arguments.Add("/EHsc");

This line will handle the compiler exception and you should be good to go! :smiley:

UE4.19, VS2017. You can fix it without fiddling with exceptions. Just wrap future include in GameLift headers with GAMELIFT_USE_STD macro. One in aws/gamelift/common/Outcome.h and another one in aws/gamelift/server/GameLiftServerAPI.h. They shouldn’t be in unreal plugin version. Like that:

#ifdef GAMELIFT_USE_STD
#include <future>
#endif