So I’m attempting to link Socket.IO C++ Client to UE for connection purposes. I’m trying to follow these two setup guides GitHub - socketio/socket.io-client-cpp: C++11 implementation of Socket.IO client (for socket.io) and A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums,
so far, when in the VS editor, the Socket.IO classes show up with no problem. Even autocomplete seems to work properly. As soon as I build, I encounter the following errors:
Error 2 error LNK2019: unresolved external symbol “public: __cdecl sio::client::client(void)” (??0client@sio@@QEAA@XZ) referenced in function “public: __cdecl ATest::ATest(class FObjectInitializer const &)” (??0ATest@@QEAA@AEBVFObjectInitializer@@@Z) C:\Users\User\Documents\Unreal Projects\Cards\Intermediate\ProjectFiles\Test.cpp.obj Cards
Error 3 error LNK2019: unresolved external symbol “public: __cdecl sio::client::~client(void)” (??1client@sio@@QEAA@XZ) referenced in function “public: __cdecl std::unique_ptr<class sio::client,struct std::default_delete >::~unique_ptr<class sio::client,struct std::default_delete >(void)” (??1?$unique_ptr@Vclient@sio@@U?$default_delete@Vclient@sio@@@std@@@std@@QEAA@XZ) C:\Users\User\Documents\Unreal Projects\Cards\Intermediate\ProjectFiles\Test.cpp.obj Cards
Error 4 error LNK2001: unresolved external symbol “public: __cdecl sio::client::~client(void)” (??1client@sio@@QEAA@XZ) C:\Users\User\Documents\Unreal Projects\Cards\Intermediate\ProjectFiles\Cards.generated.cpp.obj Cards
Error 5 error LNK2019: unresolved external symbol “public: class std::shared_ptr const & __cdecl sio::client::socket(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)” (?socket@client@sio@@QEAAAEBV?$shared_ptr@Vsocket@sio@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@anonymous_user_e71e0d8a?$allocator@D@2@@4@@Z) referenced in function “public: __cdecl ATest::ATest(class FObjectInitializer const &)” (??0ATest@@QEAA@AEBVFObjectInitializer@@@Z) C:\Users\User\Documents\Unreal Projects\Cards\Intermediate\ProjectFiles\Test.cpp.obj Cards
Error 6 error LNK1120: 3 unresolved externals C:\Users\User\Documents\Unreal Projects\Cards\Binaries\Win64\UE4Editor-Cards.dll Cards
Error 7 error : Failed to produce item: C:\Users\User\Documents\Unreal Projects\Cards\Binaries\Win64\UE4Editor-Cards.dll C:\Users\User\Documents\Unreal Projects\Cards\Intermediate\ProjectFiles\ERROR Cards
Error 8 error MSB3073: The command ““C:\Program Files\Unreal Engine\4.7\Engine\Build\BatchFiles\Build.bat” CardsEditor Win64 Development “C:\Users\User\Documents\Unreal Projects\Cards\Cards.uproject” -rocket” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38 5 Cards
I seem to be unable to access any of the sio::client class members. Does this mean I failed to link the library propery? Has anyone encountered a problem similar to this?