I am trying to use CppServer in the git hub But I am getting this linker error. It has the asio library inside the project

  asio, c++, linker

I using this git hub project to create a cpp server one of the example. but I am getting error in which the definition in the ipp files. I have included the directory path in the visual studio. I think the visual studio not finding the definition in the .ipp files
The link of the repository is https://github.com/chronoxor/CppServer
The error is:

1>Source.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl asio::detail::win_tss_ptr_create(void)" ([email protected]@[email protected]@YAKXZ) referenced in function "public: __cdecl asio::detail::win_tss_ptr<class asio::detail::call_stack<class asio::detail::thread_context,class asio::detail::thread_info_base>::context>::win_tss_ptr<class asio::detail::call_stack<class asio::detail::thread_context,class asio::detail::thread_info_base>::context>(void)" ([email protected]@[email protected][email protected]@[email protected]@[email protected]@@[email protected]@@@[email protected]@@[email protected])
1>Source.obj : error LNK2019: unresolved external symbol "class std::error_category const & __cdecl asio::system_category(void)" ([email protected]@@[email protected]@@XZ) referenced in function "class std::error_category const & __cdecl asio::error::get_system_category(void)" ([email protected]@[email protected]@[email protected]@@XZ)
1>Source.obj : error LNK2019: unresolved external symbol "public: __cdecl asio::system_context::~system_context(void)" ([email protected]@@[email protected]) referenced in function "public: void * __cdecl asio::system_context::`scalar deleting destructor'(unsigned int)" ([email protected]@@[email protected])
1>Source.obj : error LNK2019: unresolved external symbol "protected: static void __cdecl asio::detail::winsock_init_base::startup(struct asio::detail::winsock_init_base::data &,unsigned char,unsigned char)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]) referenced in function "public: __cdecl asio::detail::winsock_init<2,0>::winsock_init<2,0>(bool)" ([email protected][email protected]@[email protected]@@[email protected][email protected])
1>Source.obj : error LNK2019: unresolved external symbol "protected: static void __cdecl asio::detail::winsock_init_base::cleanup(struct asio::detail::winsock_init_base::data &)" ([email protected][email protected]@[email protected]@[email protected]@@Z) referenced in function "public: __cdecl asio::detail::winsock_init<2,0>::~winsock_init<2,0>(void)" ([email protected][email protected]@[email protected]@@[email protected])
1>Source.obj : error LNK2019: unresolved external symbol "protected: static void __cdecl asio::detail::winsock_init_base::throw_on_error(struct asio::detail::winsock_init_base::data &)" ([email protected][email protected]@[email protected]@[email protected]@@Z) referenced in function "public: __cdecl asio::detail::winsock_init<2,0>::winsock_init<2,0>(bool)" ([email protected][email protected]@[email protected]@@[email protected][email protected])
1>Source.obj : error LNK2019: unresolved external symbol "class std::error_category const & __cdecl asio::error::get_misc_category(void)" ([email protected]@[email protected]@[email protected]@@XZ) referenced in function "void __cdecl asio::error::`dynamic initializer for 'misc_category''(void)" ([email protected]@[email protected]@YAXXZ)
1>Source.obj : error LNK2019: unresolved external symbol "class std::error_category const & __cdecl asio::error::get_ssl_category(void)" ([email protected]@[email protected]@[email protected]@@XZ) referenced in function "void __cdecl asio::error::`dynamic initializer for 'ssl_category''(void)" ([email protected]@[email protected]@YAXXZ)
1>Source.obj : error LNK2019: unresolved external symbol "class std::error_category const & __cdecl asio::ssl::error::get_stream_category(void)" ([email protected]@[email protected]@@[email protected]@@XZ) referenced in function "void __cdecl asio::ssl::error::`dynamic initializer for 'stream_category''(void)" ([email protected]@[email protected]@@YAXXZ)
1>C:Usersdinessourcereposyoox64Debugyoo.exe : fatal error LNK1120: 9 unresolved externals

Source: Windows Questions C++

LEAVE A COMMENT