[4.11] IOnlineLeaderboardsPtr Error

Trying to modify stat values on Steam using the OnlineLeaderboards interface.

IOnlineLeaderboardsPtr myBoard = IOnlineSubsystem::Get()->GetLeaderboardsInterface();

When I try to make a call to myBoard-> I get the following error:

Error: Pointer to incomplete class type is not allowed

Is there a known issue with the OnlineLeaderboards interface? If not, what am I doing wrong?

Make sure you’ve included the online headers wherever you’re using the online interfaces.

You can do this by adding:

#include "Online.h"

in your project’s main header, or in specific files that use online features.

Hey Ian, thanks for the reply, sadly that’s not the fix.

Was there no effect, or did you get a different error? Can you post a complete log of your compile error? Have you used any other OnlineSubsystem interface in your code?

  • There was no effect.
  • Intellisense is the one giving me the error, not the compiler
  • I have used: FriendsInterface, ExternalUIInterface, IdentityInterface, SessionInterface and AchievementsInterface

Intellisense worked just fine on all those interfaces, but is giving me the error I mentioned on the LeaderboardInterface.

The line IOnlineLeaderboardsPtr myBoard = IOnlineSubsystem::Get()->GetLeaderboardsInterface(); does not give the error, it’s myBoard-> that does. Sorry if I was not clear about that.

Still looking for insight on this

I have exactly the same issue with 4.12.
Any news on this?