# C++ Online Import Issues

**URL:** <https://forums.unrealengine.com/t/c-online-import-issues/2230799>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [December 18, 2024, 6:06pm UTC](https://forums.unrealengine.com/t/c-online-import-issues/2230799 "2024-12-18T18:06:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MysterieCatDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MysterieCatDev](https://forums.unrealengine.com/u/MysterieCatDev)\
**Post date:** [December 18, 2024, 6:06pm UTC](https://forums.unrealengine.com/t/c-online-import-issues/2230799/1 "2024-12-18T18:06:58Z")

</div>

All of the resources I’ve seen for using UE5 and C++ with multiplayer session management tell me to use includes like:

`#include "Online/OnlineSessionSettings.h"` for things like **FOnlineSessionSettings**.

However, this include and many others that are sometimes referenced, don’t seem to exist.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/8/dd86d3b8f3e5abea5d0fc16ccf54dbcab8a8a830.png)

I’ve enabled more than the minimum required “Online”/“OnlineSubSystem” plugins in the engine, just to be safe. I’ve also restarted UE and made sure to rebuild my Visual Studio Project files.

I’ve seen that the files I’m looking for (like the above) DO exist under paths like `"UE_5.5/Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineSessionSettings.h"` but including directly from that file results in a failed build.

Is there a step I’m missing? Are all of these code-snippets and guides I’ve seen that out of date?

---

<div class="post-metadata">

**Author:** ![Sitiana](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sitiana/32/1194605_2.png) [@Sitiana](https://forums.unrealengine.com/u/Sitiana)\
**Post date:** [December 18, 2024, 6:12pm UTC](https://forums.unrealengine.com/t/c-online-import-issues/2230799/2 "2024-12-18T18:12:47Z")

</div>

Hi, you didn’t mention adding `OnlineSubsystem` to your build.cs, so that might be your missing step.

To clarify, just add “OnlineSubsystem” to `PublicDependencyModuleNames` or `PrivateDependencyModuleNames`;

---

<div class="post-metadata">

**Author:** ![MysterieCatDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MysterieCatDev](https://forums.unrealengine.com/u/MysterieCatDev)\
**Post date:** [December 18, 2024, 6:48pm UTC](https://forums.unrealengine.com/t/c-online-import-issues/2230799/3 "2024-12-18T18:48:09Z")

</div>

Thank you for this.

To anyone else who stumbles onto this: I had to add that line, then have the engine rebuild the project files and I think things are in order. The path I was using previously isn’t the one I need (it’s now `Interfaces/OnlineSessionSettings`) but I’m hoping this means all the pathing issues are solved.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 17, 2025, 6:48pm UTC](https://forums.unrealengine.com/t/c-online-import-issues/2230799/4 "2025-01-17T18:48:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
