Hello everyone,
I’ve a big LNK2019 error wich make me crazy…
Error 4 error LNK2019: unresolved external symbol "public: void __cdecl FVariantData::Empty(void)" (?Empty@FVariantData@@QEAAXXZ) referenced in function "public: __cdecl FVariantData::~FVariantData(void)" (??1FVariantData@@QEAA@XZ) Module.Engine.5_of_30.cpp.obj
I’m trying to make my dedicated server able to start session for player, as instancing a new zone for a specific player / group of player.
I include those Module
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "OnlineSubsystemUtils", "OnlineSubsystemNull", "Sockets", "Networking", "Slate", "SlateCore", "MoviePlayer" });
PrivateDependencyModuleNames.AddRange(new string[] {}); DynamicallyLoadedModuleNames.Add("OnlineSubsystemNull");
this is my fonction at the moment:
void AGameSession::RegisterServer()
{
UWorld* World = GetWorld();
check(World);
IOnlineSessionPtr SessionInt = Online::GetSessionInterface(World);
if (SessionInt.IsValid())
{
FOnlineSessionSettings SessionSettings; //this is the line where it make error if i remove it, it compile
return;
}
return;
}
Any help would be greatly appreciate.
Best regards.