You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, I am having linking issues with Visual Studio 2015 (update 3) when building a Universal Windows DLL that uses this library. I downloaded the version straight from master and I am using the following switches in a header file before including anything else:
The link issue seems to be related to the win_tss_ptr_create function, which by the looks of it only gets included if ASIO_WINDOWS. There's some code somewhere looks like that is still referring to this when ASIO_WINDOWS_APP? Anyway, here's the dump from the linker:
1>BroadcastServer.obj : error LNK2019: unresolved external symbol __imp__TlsAlloc@0 referenced in function "unsigned long __cdecl asio::detail::win_tss_ptr_create(void)" (?win_tss_ptr_create@detail@asio@@Yakxz)
1>BroadcastServer.obj : error LNK2019: unresolved external symbol __imp__TlsGetValue@4 referenced in function "public: __thiscall asio::detail::win_tss_ptr<class asio::detail::call_stack<class asio::detail::thread_context,class asio::detail::thread_info_base>::context>::operator class asio::detail::call_stack<class asio::detail::thread_context,class asio::detail::thread_info_base>::context *(void)const " (??B?$win_tss_ptr@Vcontext@?$call_stack@Vthread_context@detail@asio@@Vthread_info_base@23@@detail@asio@@@detail@asio@@QBEPAVcontext@?$call_stack@Vthread_context@detail@asio@@Vthread_info_base@23@@12@XZ)
1>BroadcastServer.obj : error LNK2019: unresolved external symbol __imp__TlsFree@4 referenced in function "public: __thiscall asio::detail::win_tss_ptr::~win_tss_ptr(void)" (??1?$win_tss_ptr@Ucontext_impl@system_executor@asio@@@detail@asio@@QAE@XZ)
For context, I am using this library indirectly via websocketpp, with the following includes/defines:
Hey guys, I am having linking issues with Visual Studio 2015 (update 3) when building a Universal Windows DLL that uses this library. I downloaded the version straight from master and I am using the following switches in a header file before including anything else:
#define ASIO_WINDOWS_APP
#define ASIO_HEADER_ONLY
#define ASIO_STANDALONE
The link issue seems to be related to the win_tss_ptr_create function, which by the looks of it only gets included if ASIO_WINDOWS. There's some code somewhere looks like that is still referring to this when ASIO_WINDOWS_APP? Anyway, here's the dump from the linker:
1>BroadcastServer.obj : error LNK2019: unresolved external symbol __imp__TlsAlloc@0 referenced in function "unsigned long __cdecl asio::detail::win_tss_ptr_create(void)" (?win_tss_ptr_create@detail@asio@@Yakxz)
1>BroadcastServer.obj : error LNK2019: unresolved external symbol __imp__TlsGetValue@4 referenced in function "public: __thiscall asio::detail::win_tss_ptr<class asio::detail::call_stack<class asio::detail::thread_context,class asio::detail::thread_info_base>::context>::operator class asio::detail::call_stack<class asio::detail::thread_context,class asio::detail::thread_info_base>::context *(void)const " (??B?$win_tss_ptr@Vcontext@?$call_stack@Vthread_context@detail@asio@@Vthread_info_base@23@@detail@asio@@@detail@asio@@QBEPAVcontext@?$call_stack@Vthread_context@detail@asio@@Vthread_info_base@23@@12@XZ)
1>BroadcastServer.obj : error LNK2019: unresolved external symbol __imp__TlsFree@4 referenced in function "public: __thiscall asio::detail::win_tss_ptr::~win_tss_ptr(void)" (??1?$win_tss_ptr@Ucontext_impl@system_executor@asio@@@detail@asio@@QAE@XZ)
For context, I am using this library indirectly via websocketpp, with the following includes/defines:
#define WEBSOCKETPP_CPP11_STL
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/common/thread.hpp>
#include <websocketpp/server.hpp>
Any idea how I can fix this? Seems to be related to something within asio, not websocketpp.
The text was updated successfully, but these errors were encountered: