如何链接 boost::beast HTTP 客户端库
boost::beast 是一个仅头文件****库。虽然 boost::beast 严重依赖 boost::asio 作为网络库,但 asio 也是一个仅头文件库。
因此,通常你根本不需要链接 boost::beast。
唯一的例外是如果你使用 SSL/TLS 函数进行 HTTPS 连接,在这种情况下你需要链接提供 SSL/TLS 层的 OpenSSL 库。在这种情况下,使用以下方式链接
link_openssl.ldflags.sh
-lcrypto -lsslIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow