LNK2019 when including asio headers, solution generated with cmake
I am trying to port a big project from gcc (Linux) to msvc (windows), using cmake and boost libraries. The project compile and runs fine for gcc but on msvc it returns the following error: Dyna.obj : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXABVexception@std@@@Z) referenced in function "void __cdecl boost::asio::detail::do_throw_error(class boost::system::error_code const &,char const *)" (?do_throw_error@detail@asio@boost@@YAXABVerror_code@system@3@PBD@Z) I tried running a simple project using