1>main.obj : error LNK2019: unresolved external symbol "public: static unsigned __int64 __cdecl PlayFab::PlayFabClientAPI::Update(void)" (?Update@PlayFabClientAPI@PlayFab@@SA_KXZ) referenced in function main 1>main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl PlayFab::PlayFabClientAPI::LoginWithCustomID(struct PlayFab::ClientModels::LoginWithCustomIDRequest &,class std::function<void __cdecl(struct PlayFab::ClientModels::LoginResult const &,void *)>,class std::function<void __cdecl(struct PlayFab::PlayFabError const &,void *)>,void *)" (?LoginWithCustomID@PlayFabClientAPI@PlayFab@@SAXAEAULoginWithCustomIDRequest@ClientModels@2@V?$function@$A6AXAEBULoginResult@ClientModels@PlayFab@@PEAX@Z@std@@V?$function@$A6AXAEBUPlayFabError@PlayFab@@PEAX@Z@6@PEAX@Z) referenced in function main 1>main.obj : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > PlayFab::PlayFabSettings::titleId" (?titleId@PlayFabSettings@PlayFab@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A)
I just spoke with the SDK team. There's a bug in the nuget package generation process for the XplatCppSdk. They'll be fixing it soon. For now, you can download and build from source. There's more info on how to do that in the readme for the repo: https://github.com/PlayFab/XPlatCppSdk.
We have tested our CPP SDK and the project with xplatcppsdk v141 compiles successfully.
May I ask which version of Visual Studio you are using? In addition, are you following the guide that this documentation provides?
3 People are following this question.