Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link issue with asio master #620

Open
remusrg opened this issue Feb 7, 2017 · 1 comment
Open

Link issue with asio master #620

remusrg opened this issue Feb 7, 2017 · 1 comment

Comments

@remusrg
Copy link

remusrg commented Feb 7, 2017

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 __imp__TlsAlloc@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 __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)
2>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)
2

@remusrg
Copy link
Author

remusrg commented Feb 7, 2017

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::allocatorasio::const_buffer>,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_typesasio::const_buffer>>,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::connectionwebsocketpp::config::asio::transport_config::* )(websocketpp::transport::init_handler,const asio::error_code &,std::size_t),std::shared_ptr<websocketpp::transport::asio::connectionwebsocketpp::config::asio::transport_config>,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::connectionwebsocketpp::config::asio::transport_config::* )(websocketpp::transport::init_handler,const asio::error_code &,std::size_t),std::shared_ptr<websocketpp::transport::asio::connectionwebsocketpp::config::asio::transport_config>,websocketpp::transport::init_handler &,const std::_Ph<1> &,const std::_Ph<2> &>>>
1> ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant