title: Using Steamworks in Unreal Engine 4
body: <p>So I've started implementing Steamworks functions for my game, and everything went perfectly fine. I managed to get sync with steam API ( i can do achievements and see that i'm playing game on my steam acc). However when i wanted to start using some functions that they provided, my engine is saying:</p>
  
  <pre><code>error LNK2019: unresolved external symbol
  </code></pre>
  
  <p>Anyone can help me solve this problem? I'm aiming atm at reading and saving score in Leaderboards. Any good advices for me ? :D</p>
  
  <p>Code sample that gives me error:</p>
  
  <pre><code>    int MyCodeLibrary::TryGetScore()
  {
      if (SteamAPI_Init())
      {
          CSteamLeaderboards obj();
          obj().FindLeaderboard("test");
          obj().DownloadScores();
          return 0;
      }
      else
      {
          return 0;
      }
  }
  </code></pre>
  
  <p>Also tried to get to Steam with OnlineSubsystem like this:</p>
  
  <pre><code>void MyCodeLibrary::UpdateScoreInt(int score, FName board, APlayerController* PlayerController)
  {
      OutputDebugStringA("Funkcja jest wywoływana");
      if (SteamAPI_Init())
      {
          OutputDebugStringA("Steam API działa");
          ULocalPlayer* LocalPlayer = Cast&lt;ULocalPlayer&gt;(PlayerController-&gt;Player);
          IOnlineSubsystem* ion = IOnlineSubsystem::Get(FName("Steam"));
          TSharedPtr&lt;const FUniqueNetId&gt; UserId = ion-&gt;GetIdentityInterface()-&gt;GetUniquePlayerId(LocalPlayer-&gt;GetControllerId());
          ion-&gt;GetLeaderboardsInterface();
  
          FOnlineLeaderboardWrite wrt;
          wrt.LeaderboardNames.Add(board);
          wrt.SetIntStat(TEXT("Score"), score);
  
          if (UserId.IsValid())
          {
              OutputDebugStringA("Mam UserID");
              ion-&gt;GetLeaderboardsInterface()-&gt;WriteLeaderboards(board, *UserId, wrt);
              printf("Odpalony score");
          }
  
      }
  }
  </code></pre>