You need to link with Boost.System which should have been compiled for
arm64 as well.
HTH
Le 05/07/2021 à 18:18, simsicon via Boost-users a écrit :
Hi,
I was following the tutorial
(https://www.boost.org/doc/libs/1_76_0/doc/html/boost_asio/tutorial/tuttimer1/src.html
<https://www.boost.org/doc/libs/1_76_0/doc/html/boost_asio/tutorial/tuttimer1/src.html>)
on macbook with m1 chip, and try to run the simple code and I meet the
following error:
Undefined symbols for architecture arm64:
"boost::chrono::steady_clock::now()", referenced from:
boost::asio::detail::chrono_time_traits<boost::chrono::steady_clock,
boost::asio::wait_traits<boost::chrono::steady_clock> >::now() in
mock-93ab24.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
I am kind of new to C++ and boost, but I think this issue may be
related to apple silicon compatibility?
--
Thanks&Best Regards
Zhang Zheng
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users
--
Olivier Tristan
Research & Development
www.uvi.net
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users