I got this error while compiling a custom javascript runtime project ( i updated some source c++ code and v8 version)
Undefined symbols for architecture x86_64:
"boost::system::detail::system_category_instance", referenced from:
_main in main.cpp.o
boost::asio::io_context::io_context() in main.cpp.o
boost::asio::detail::scheduler::scheduler(boost::asio::execution_context&, int) in main.cpp.o
boost::asio::detail::scheduler::~scheduler() in main.cpp.o
boost::asio::detail::scheduler::~scheduler() in main.cpp.o
boost::asio::detail::scheduler::shutdown() in main.cpp.o
boost::asio::local::basic_endpoint<boost::asio::local::stream_protocol>::basic_endpoint(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in main.cpp.o
...
"boost::system::detail::generic_category_instance", referenced from:
boost::system::error_category::std_category::equivalent(int, std::__1::error_condition const&) const in main.cpp.o
boost::system::error_category::std_category::equivalent(std::__1::error_code const&, int) const in main.cpp.o
boost::system::error_category::std_category::equivalent(int, std::__1::error_condition const&) const in module_loader.cpp.o
boost::system::error_category::std_category::equivalent(std::__1::error_code const&, int) const in module_loader.cpp.o
boost::system::error_category::std_category::equivalent(int, std::__1::error_condition const&) const in native_module_config.cpp.o
boost::system::error_category::std_category::equivalent(std::__1::error_code const&, int) const in native_module_config.cpp.o
boost::system::error_category::std_category::equivalent(int, std::__1::error_condition const&) const in native_module_context.cpp.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am not able to understand the error, Is it due to the v8 monolithic file change, or due to boost version or c++ code changes that i did?
How can i resolve this error