# error LNK2019: unresolved external symbol for FOnlineSessionSettings::Get\<class FName\>(class FName,class FName &) 

**URL:** <https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-for-fonlinesessionsettings-get-class-fname-class-fname-class-fname/2584666>\
**Category:** C++\
**Tags:** error, onlinesubsystem, online, unreal-engine, compile-error, CPP, question\
**Created:** [June 29, 2025, 10:45pm UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-for-fonlinesessionsettings-get-class-fname-class-fname-class-fname/2584666 "2025-06-29T22:45:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeSmartPepega](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeSmartPepega](https://forums.unrealengine.com/u/MeSmartPepega)\
**Post date:** [June 29, 2025, 10:45pm UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-for-fonlinesessionsettings-get-class-fname-class-fname-class-fname/2584666/1 "2025-06-29T22:45:22Z")

</div>

Hi everyone, i am actually starting to lose my mind after trying to fix this for the whole day 🙂

I get following error messages when trying to compile my code:

> FLobbyData.cpp.obj : error LNK2019: unresolved external symbol "public: bool \_\_cdecl FOnlineSessionSettings::Get(class FName,class FName &)const " (??$Get@VFName@@@FOnlineSessionSettings@@QEBA\_NVFName@@AEAV1@@Z) referenced in function “public: \_\_cdecl FLobbyData::FLobbyData(class FOnlineSessionSearchResult const &)” (??0FLobbyData@@QEAA@AEBVFOnlineSessionSearchResult@@@Z)

> E:\Gamedev\UnrealProjects\Project\_Tavern\Binaries\Win64\UnrealEditor-Project\_Tavern-8487.dll : fatal error LNK1120: 1 unresolved externals

Here’s the full `.cpp` file causing the issue:

```auto
// Fill out your copyright notice in the Description page of Project Settings.

#include "FLobbyData.h"

#include "SessionSubsystem_CPP.h"
#include "OnlineSubsystemUtils.h"
#include "OnlineSessionSettings.h"

FLobbyData::FLobbyData(): PublicConnections(0), MaxPublicConnections(0), IsLAN(false)
{
	LobbyName = TEXT("NULL");
}

FLobbyData::FLobbyData(const FOnlineSessionSearchResult& Result)
{
	if (Result.Session.SessionSettings.Get(SETTING_LOBBYNAME, LobbyName) == false)
	{
		LobbyName = TEXT("NULL");
	}

	MaxPublicConnections = Result.Session.SessionSettings.NumPublicConnections;
	const int32 openConnections = Result.Session.NumOpenPublicConnections;
	PublicConnections = MaxPublicConnections - openConnections;

	IsLAN = Result.Session.SessionSettings.bIsLANMatch;
	SessionSearchResult = Result;
}

```

The line that’s causing the problem seems to be:

```auto
Result.Session.SessionSettings.Get(SETTING_LOBBYNAME, LobbyName)

```

Apparently, the linker can’t find the implementation of `FOnlineSessionSettings::Get`, which is strange because calling `FOnlineSessionSettings::Set` elsewhere works just fine

What i have already tried:

> -Adding (“OnlineSubsystem”, “OnlineSubsystemUtils”) to PrivateDependencyModuleNames  
> -Clearing the project cache and regenerating Visual Studio project files  
> -Reinstalling UE  
> -Trying this code in a fresh project with a different version of UE  
> -Restarting PC

At this point, I’m out of ideas. I’ve searched this forum for similar issues, but nothing has worked for me so far. Any suggestions would be _greatly_ appreciated!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![MeSmartPepega](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeSmartPepega](https://forums.unrealengine.com/u/MeSmartPepega)\
**Post date:** [June 30, 2025, 8:34am UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-for-fonlinesessionsettings-get-class-fname-class-fname-class-fname/2584666/2 "2025-06-30T08:34:03Z")

</div>

After playing around i found the solution for my problem…

When I used `FString` instead of `FName` for my `LobbyName` variable, it started compiling:

```auto
UPROPERTY(BlueprintReadOnly)
// FName LobbyName;
FString LobbyName;

```

I have no clue why that is, because to my knowledge, both `FName` and `FString` are value types and should work with that template function…

---

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [June 30, 2025, 4:39pm UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-for-fonlinesessionsettings-get-class-fname-class-fname-class-fname/2584666/3 "2025-06-30T16:39:03Z")

</div>

FName is not a valid session setting. Here are all the supported types.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/7/85750974e592d1302654a383ad068da0e43de426.png)
