gpt4 book ai didi

c++ - 运行 boost bcp 工具时出错 : "The Boost path appears to have been incorrectly set"

转载 作者:可可西里 更新时间:2023-11-01 18:27:22 24 4
gpt4 key购买 nike

尝试运行 Boost 的 bcp 工具时,出现以下错误:

**** exception(205): std::runtime_error: The Boost path appears to have been incorrectly set: could not find boost/version.hpp in 
******** errors detected; see standard output for details ********

错误消息与上面完全一样,它尝试搜索的路径为空。我尝试通过设置 BOOST_ROOT 环境变量来解决它,但同样的错误又回来了,搜索到的路径仍然是空的。系统为Mac OS X 10.9.1。

最佳答案

好的,我通过添加以下命令行选项解决了这个问题:

--boost=/path/to/boost_directory

我曾天真地假设 bcp 会在应该设置的环境变量中找到这个目录,因为文档中的大多数示例都没有包含该选项。现在我在文档中看到,如果未指定该选项,“则假定当前路径是 Boost 树的根目录”。

http://www.boost.org/doc/libs/1_55_0/tools/bcp/doc/html/index.html#bcp.syntax.options

关于c++ - 运行 boost bcp 工具时出错 : "The Boost path appears to have been incorrectly set",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20915123/

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