Lyra - LyraGamePhaseSubsystem - Unresolved External Symbol

I’m trying to get a reference to the LyraGamePhaseSubsystem inside C++, but when I use

ULyraGamePhaseSubsystem* LyraGamePhaseSubsystem = UWorld::GetSubsystem<ULyraGamePhaseSubsystem>(GetWorld());

I get unresolved external symbol. I do have include inside the cpp class
#include "AbilitySystem/Phases/LyraGamePhaseSubsystem.h"

When I’m getting reference to the LyraTeamSubsystem everything works just fine
ULyraTeamSubsystem* TeamSubsystem = UWorld::GetSubsystem<ULyraTeamSubsystem>(GetWorld());

What I need to do to address this issue?

Make sure “Gameplay Abilities” plugin is enabled (restart editor after enabling) and that

"GameplayAbilities", "GameplayTags", "GameplayTasks"

are added to your dependencies (build.cs file in your project).

Well the issue was that I didn’t add LYRAGAME_API export into the class I want to include inside my cpp. Basically it needs to be added to every Lyra class that you want to include/subclass and they don’t have LYRAGAME_API export already.

Inside ULyraGamePhaseSubsystem just add LYRAGAME_API and it will fix the issue.

class LYRAGAME_API ULyraGamePhaseSubsystem : public UWorldSubsystem