安装
sudo apt install libboost-coroutine1.71-dev
编译链接
libboost-coroutine不支持.pc格式查看, 支持.cmake导入
cat /usr/lib/x86_64-linux-gnu/cmake/boost_coroutine-1.71.0/boost_coroutine-config.cmake
cat /usr/lib/x86_64-linux-gnu/cmake/boost_coroutine-1.71.0/libboost_coroutine-variant-shared.cmake
list(APPEND _BOOST_COROUTINE_DEPS atomic chrono context thread headers)
可知依赖: atomic chrono context thread
从安装路径可知
头文件路径: /usr/include/boost/coroutine2/coroutine.hpp
/usr/include/boost/coroutine2/all.hpp
库文件路径: /usr/lib/x86_64-linux-gnu/libboost_coroutine.so
故从路径可知
编译选项:
链接选项: -lboost_coroutine -lboost_context