question

jgold avatar image
jgold asked

Cannot compile when using nuget package xplatcppsdk v141.

sdks
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jgold avatar image jgold commented ·
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)
0 Likes 0 ·
Andy avatar image
Andy answered

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.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image
Seth Du answered

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?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jgold avatar image jgold commented ·

Have you tested with the nuget package specifically? It doesn't appear there is a PlayFab lib (or dll even) present in the package.

build\native\lib\x64\Debug contains:
libcurl_a_debug.lib
libssl.lib
libcrypto.lib
zlib.lib
lib_json.lib

The Release folder is similar.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.