gpt4 book ai didi

c++ - Boost 版本在 Ubuntu Trusty 上至少为 1.56

转载 作者:行者123 更新时间:2023-11-30 03:36:46 27 4
gpt4 key购买 nike

我需要构建 MongoDB C++ 驱动程序。它需要至少 1.56 的 Boost 版本,而我当前的 Boost 版本是 Ubuntu Trusty 上的默认 Boost 1.54 (libboost-all-dev)。

我找不到合适的 PPA。是否可以在 Ubuntu Trusty 上安装 Boost 1.56?甚至更好的 Boost 1.62?

最佳答案

Boost polyfill 需要 Boost 1.56,但是,MongoDB C++ 驱动程序可以使用默认的 MNMLSTC/core polyfill 编译。

https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/ 中的第 4 步.使用默认的 polyfill 代替 Boost polyfill。

MNMLSTC/核心 polyfill:

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..

boost polyfill:

cmake -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_BOOST=1 \
-DCMAKE_INSTALL_PREFIX=/usr/local ..

关于c++ - Boost 版本在 Ubuntu Trusty 上至少为 1.56,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40518084/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com