zaphoyd / websocketpp

C++ websocket client/server library
http://www.zaphoyd.com/websocketpp
Other
6.97k stars 1.97k forks source link

Link issue with asio master #620

Open remusrg opened 7 years ago

remusrg commented 7 years ago

Where exactly do I need to get asio from? With the version in master, I get the link issues below. I need this because I need the ASIO_WINDOWS_APP handled which adds support for UWP/Windows Store apps.

2>BroadcastServer.obj : error LNK2019: unresolved external symbol impTlsAlloc@0 referenced in function "unsigned long cdecl asio::detail::win_tss_ptr_create(void)" (?win_tss_ptr_create@detail@asio@@YAKXZ) 2>BroadcastServer.obj : error LNK2019: unresolved external symbol impTlsGetValue@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) 2>BroadcastServer.obj : error LNK2019: unresolved external symbol impTlsFree@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) 2

remusrg commented 7 years ago

Quick update: Re-enabling warnings for 4503 (I had it disabled as it wouldn't even compile, I get this error (and a few other similar ones, which might be the root cause for the above linking issues?

warning C4503: 'asio::associated_allocator<Handler,asio::detail::hook_allocator<Handler,void>>::get': decorated name length exceeded, name was truncated 1> with 1> [ 1> Handler=asio::detail::rewrapped_handler<asio::detail::binder2<asio::detail::write_op<asio::ip::tcp::socket,std::vector<asio::const_buffer,std::allocator>,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types>>,asio::detail::transfer_all_t,asio::detail::wrapped_handler<asio::io_context::strand,websocketpp::transport::asio::custom_alloc_handler<std::_Binder<std::_Unforced,void (thiscall websocketpp::transport::asio::connection::* )(websocketpp::transport::init_handler,const asio::error_code &,std::size_t),std::shared_ptr<websocketpp::transport::asio::connection>,websocketpp::transport::init_handler &,const std::_Ph<1> &,const std::_Ph<2> &>>,asio::detail::is_continuation_if_running>>,asio::error_code,std::size_t>,websocketpp::transport::asio::custom_alloc_handler<std::_Binder<std::_Unforced,void (thiscall websocketpp::transport::asio::connection::* )(websocketpp::transport::init_handler,const asio::error_code &,std::size_t),std::shared_ptr<websocketpp::transport::asio::connection>,websocketpp::transport::init_handler &,const std::_Ph<1> &,const std::_Ph<2> &>>> 1> ]