Dedicated Server session

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();
	IOnlineSessionPtr SessionInt = Online::GetSessionInterface(World);
	if (SessionInt.IsValid())
		FOnlineSessionSettings SessionSettings; //this is the line where it make error if i remove it, it compile

Any help would be greatly appreciate.

Best regards.

Solved, i made a inheritance and a override of the AGameSession and no more error.

By the way if you have any idea about this:

Thank you :).

Hi, how did you do the inheritance and override?

@, If you are still interested:
Basically inhertance means create your own GameSession class.
Override means that because the RegisterServer function is virtual you can put your own RegisterServer function in your new class that will override the parent (base) class.
Anyway, this is for anyone who ends up here like I did seeking to fumble their way to an understanding of unreal.

I wrote a much longer answer with more details but it was too long!
If you have any good links to more information on the ins and outs of dedicated server creation I would be interested.